summaryrefslogtreecommitdiff
path: root/src/parser/grammar.js
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.js
parent9e8703d07e2e49d14e3d2092d77f8f7e75ee7e04 (diff)
fix comment parsing
Diffstat (limited to 'src/parser/grammar.js')
-rw-r--r--src/parser/grammar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/grammar.js b/src/parser/grammar.js
index f51d7f6..6d055c7 100644
--- a/src/parser/grammar.js
+++ b/src/parser/grammar.js
@@ -737,7 +737,7 @@ case 31: return "LABEL";
break;
}
},
-rules: [/^(?:$)/,/^(?:\\n)/,/^(?:.)/,/^(?:;)/,/^(?:[\n])/,/^(?:\s)/,/^(?:MOV\b)/,/^(?:ADD\b)/,/^(?:SUB\b)/,/^(?:CMP\b)/,/^(?:SLT\b)/,/^(?:JMP\b)/,/^(?:JMZ\b)/,/^(?:JMN\b)/,/^(?:DJN\b)/,/^(?:SPL\b)/,/^(?:DAT\b)/,/^(?:EQU\b)/,/^(?:END\b)/,/^(?:,)/,/^(?:#)/,/^(?:@)/,/^(?:<)/,/^(?:\$)/,/^(?:\()/,/^(?:\))/,/^(?:\+)/,/^(?:-)/,/^(?:\*)/,/^(?:\/)/,/^(?:[0-9]+)/,/^(?:[A-Z][A-Z0-9_]+)/],
+rules: [/^(?:$)/,/^(?:[\n])/,/^(?:.)/,/^(?:;)/,/^(?:[\n])/,/^(?:\s)/,/^(?:MOV\b)/,/^(?:ADD\b)/,/^(?:SUB\b)/,/^(?:CMP\b)/,/^(?:SLT\b)/,/^(?:JMP\b)/,/^(?:JMZ\b)/,/^(?:JMN\b)/,/^(?:DJN\b)/,/^(?:SPL\b)/,/^(?:DAT\b)/,/^(?:EQU\b)/,/^(?:END\b)/,/^(?:,)/,/^(?:#)/,/^(?:@)/,/^(?:<)/,/^(?:\$)/,/^(?:\()/,/^(?:\))/,/^(?:\+)/,/^(?:-)/,/^(?:\*)/,/^(?:\/)/,/^(?:[0-9]+)/,/^(?:[A-Z][A-Z0-9_]+)/],
conditions: {"comment":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],"inclusive":true},"INITIAL":{"rules":[0,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],"inclusive":true}}
});
return lexer;