diff options
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/syntax.c b/src/syntax.c index 83763061d82..272e9cf1b12 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -292,7 +292,7 @@ char_quoted (charpos, bytepos) DEC_BOTH (charpos, bytepos); - while (bytepos >= beg) + while (charpos >= beg) { int c; @@ -673,7 +673,7 @@ back_comment (from, from_byte, stop, comnested, comstyle, charpos_ptr, bytepos_p { from = comstart_pos; from_byte = comstart_byte; - /* Globals are correct now. */ + UPDATE_SYNTAX_TABLE_FORWARD (from - 1); } else { @@ -1728,12 +1728,12 @@ skip_chars (forwardp, syntaxp, string, lim, handle_iso_classes) if (negate) break; else - goto fwd_ok; + goto fwd_unibyte_ok; } if (!fastmap[*p]) break; - + fwd_unibyte_ok: p++, pos++; } } @@ -1801,12 +1801,12 @@ skip_chars (forwardp, syntaxp, string, lim, handle_iso_classes) if (negate) break; else - goto fwd_ok; + goto back_unibyte_ok; } if (!fastmap[p[-1]]) break; - + back_unibyte_ok: p--, pos--; } } |