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:
@@ -24,7 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
grammar rs2asm;
|
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 ;
|
header: id | int_stack_count | string_stack_count | int_var_count | string_var_count ;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user