summaryrefslogtreecommitdiffhomepage
path: root/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer.c b/lexer.c
index dfb7d98..0935494 100644
--- a/lexer.c
+++ b/lexer.c
@@ -614,7 +614,7 @@ parse_string(uc_lexer *lex, bool no_regexp)
else if (*ptr == '\\') {
lex->is_escape = true;
lookbehind_append(lex, lex->bufstart, ptr - lex->bufstart);
- buf_consume(lex, ptr - lex->bufstart);
+ buf_consume(lex, (ptr - lex->bufstart) + 1);
}
}