rs2asm: allow multiple newlines after header or instruction

Even though NEWLINE reads multiple newline characters, the lexer can emit multiple NEWLINE tokens from having only a comment on a line
This commit is contained in:
Adam
2018-02-13 15:54:57 -05:00
parent 9bc6e079ce
commit 6cb140503e

View File

@@ -24,7 +24,7 @@
*/
grammar rs2asm;
prog: (header NEWLINE)* (line NEWLINE)+ ;
prog: (header NEWLINE+)* (line NEWLINE+)+ ;
header: id | int_stack_count | string_stack_count | int_var_count | string_var_count ;