summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-14 17:56:45 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-14 17:56:45 -0800
commit980231a345e5a5e9c3b4eb7f84896e6fccb429b5 (patch)
treea5e5aee0326a908351282fc3baec98a7d0b5e03f /src
parentfccb9fb46cf18ebd12e7661b253ecb4eeed13b4a (diff)
Added comment.
Diffstat (limited to 'src')
-rw-r--r--src/inlines.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inlines.c b/src/inlines.c
index 0ff5e0f..872a9c3 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -254,6 +254,7 @@ scan_delims(subject* subj, unsigned char c, bool * can_open, bool * can_close)
before_char = 10;
} else {
before_char_pos = subj->pos - 1;
+ // walk back to the beginning of the UTF_8 sequence:
while (peek_at(subj, before_char_pos) >> 6 == 2 &&
before_char_pos > 0) {
before_char_pos -= 1;