From 9fa301a7cf8e8b5883521d1a966ee7b65ecf925e Mon Sep 17 00:00:00 2001 From: sanine-a Date: Mon, 22 May 2023 15:09:10 -0500 Subject: fix comment parsing --- src/parser/grammar.jison | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser/grammar.jison') diff --git a/src/parser/grammar.jison b/src/parser/grammar.jison index 83255e0..edcca5c 100644 --- a/src/parser/grammar.jison +++ b/src/parser/grammar.jison @@ -5,7 +5,7 @@ %% <> { return "EOF"; } -"\n" { this.popState(); return "NEWLINE"; } +[\n] { this.popState(); return "NEWLINE"; } . { /* ignore anything else inside a comment */ } ";" { this.pushState('comment'); } -- cgit v1.2.1