Skip to content

Commit

Permalink
Scanner seems to work!
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jan 7, 2024
1 parent 4460a10 commit 4aa3a66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#error "expected assertions to be enabled"
#endif

#define DEBUG_PRINT
// #define DEBUG_PRINT
#ifdef DEBUG_PRINT
#define dbg_print(...) \
do { \
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -278,6 +279,7 @@ bool scan_string_content(TSLexer *lexer, Scanner *state) {
}

advance(lexer);
mark_end(lexer);
has_content = true;
}

Expand Down

0 comments on commit 4aa3a66

Please sign in to comment.