diff --git a/src/scanner.c b/src/scanner.c index 8f98d1f..6faba0a 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -9,7 +9,7 @@ #error "expected assertions to be enabled" #endif -#define DEBUG_PRINT +// #define DEBUG_PRINT #ifdef DEBUG_PRINT #define dbg_print(...) \ do { \ @@ -248,6 +248,7 @@ bool scan_string_content(TSLexer *lexer, Scanner *state) { } if (lexer->lookahead == end_char) { + dbg_print("next is end char '%c'\n", lexer->lookahead); if (is_triple) { mark_end(lexer); @@ -278,6 +279,7 @@ bool scan_string_content(TSLexer *lexer, Scanner *state) { } advance(lexer); + mark_end(lexer); has_content = true; }