summaryrefslogtreecommitdiff
path: root/src/parser/grammar.jison
diff options
context:
space:
mode:
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'); }