File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -153,13 +153,13 @@ static bool skip_literal_continuation_sequence(TSLexer *lexer) {
153153 return true;
154154 }
155155
156- skip (lexer );
156+ advance (lexer );
157157 while (iswspace (lexer -> lookahead )) {
158- skip (lexer );
158+ advance (lexer );
159159 }
160- // second '&' required to continue the literal
160+ // second '&' technically required to continue the literal
161161 if (lexer -> lookahead == '&' ) {
162- skip (lexer );
162+ advance (lexer );
163163 return true;
164164 }
165165 return false;
@@ -365,6 +365,7 @@ static bool scan_string_literal(TSLexer *lexer) {
365365 // the end of the literal. We also need to check that an
366366 // escaped quote isn't split in half by a line
367367 // continuation -- people do this!
368+ lexer -> mark_end (lexer );
368369 skip_literal_continuation_sequence (lexer );
369370 if (lexer -> lookahead != opening_quote ) {
370371 return true;
You can’t perform that action at this time.
0 commit comments