From 6cb140503ebb4fba54748fad34050028835c5ad0 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 13 Feb 2018 15:54:57 -0500 Subject: [PATCH] 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 --- .../main/antlr4/net/runelite/cache/script/assembler/rs2asm.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/src/main/antlr4/net/runelite/cache/script/assembler/rs2asm.g4 b/cache/src/main/antlr4/net/runelite/cache/script/assembler/rs2asm.g4 index b4e74a4c3b..4fdbb4e199 100644 --- a/cache/src/main/antlr4/net/runelite/cache/script/assembler/rs2asm.g4 +++ b/cache/src/main/antlr4/net/runelite/cache/script/assembler/rs2asm.g4 @@ -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 ;