From 1be232121918bf31b29266a5dddf311863d19467 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Sat, 6 Jan 2024 21:28:28 -0600 Subject: [PATCH] Tests pass --- src/scanner.c | 2 +- test/corpus/statements.txt | 10 ++-------- test/highlight/statements.just | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index 6cd46ed..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 { \ diff --git a/test/corpus/statements.txt b/test/corpus/statements.txt index f29e55a..93def52 100644 --- a/test/corpus/statements.txt +++ b/test/corpus/statements.txt @@ -228,7 +228,7 @@ foo := '''a''' bar:= '''b c ''' -baz := '''' +baz := ''' abc \t def \" ''' @@ -255,15 +255,9 @@ baz := '''' (item (assignment (identifier) - (ERROR - (identifier) - (escape_sequence) - (identifier) - (escape_sequence)) (expression (value - (raw_string_literal - (MISSING _raw_string_end)))) + (raw_string_literal))) (eol))) (item (eol))) diff --git a/test/highlight/statements.just b/test/highlight/statements.just index 3775d0e..03b13c1 100644 --- a/test/highlight/statements.just +++ b/test/highlight/statements.just @@ -102,7 +102,7 @@ bar3 := '''b ''' # <- string -baz3 := '''' +baz3 := ''' abc \t def \" '''