diff options
author | sanine-a <sanine.not@pm.me> | 2023-05-22 15:09:10 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-05-22 15:09:10 -0500 |
commit | 9fa301a7cf8e8b5883521d1a966ee7b65ecf925e (patch) | |
tree | 38a87e7bc3b17dabd149c64f5d266f0589b717c5 /src/parser/grammar.jison | |
parent | 9e8703d07e2e49d14e3d2092d77f8f7e75ee7e04 (diff) |
fix comment parsing
Diffstat (limited to 'src/parser/grammar.jison')
-rw-r--r-- | src/parser/grammar.jison | 2 |
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'); } |