summaryrefslogtreecommitdiff
path: root/src/parser/grammar.jison
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2023-05-22 15:09:10 -0500
committersanine-a <sanine.not@pm.me>2023-05-22 15:09:10 -0500
commit9fa301a7cf8e8b5883521d1a966ee7b65ecf925e (patch)
tree38a87e7bc3b17dabd149c64f5d266f0589b717c5 /src/parser/grammar.jison
parent9e8703d07e2e49d14e3d2092d77f8f7e75ee7e04 (diff)
fix comment parsing
Diffstat (limited to 'src/parser/grammar.jison')
-rw-r--r--src/parser/grammar.jison2
1 files changed, 1 insertions, 1 deletions
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 @@
%%
<<EOF>> { return "EOF"; }
-<comment>"\n" { this.popState(); return "NEWLINE"; }
+<comment>[\n] { this.popState(); return "NEWLINE"; }
<comment>. { /* ignore anything else inside a comment */ }
";" { this.pushState('comment'); }