From a3b2b4920a12ed182420244034cf0334f67bd81b Mon Sep 17 00:00:00 2001 From: lippfi <x@lipp.fi> Date: Fri, 8 Oct 2021 00:05:54 +0300 Subject: [PATCH] Comments are skipped during parsing --- src/main/antlr/Vimscript.g4 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/antlr/Vimscript.g4 b/src/main/antlr/Vimscript.g4 index 15f68c3ef..14ed817f3 100644 --- a/src/main/antlr/Vimscript.g4 +++ b/src/main/antlr/Vimscript.g4 @@ -989,6 +989,7 @@ WS: [ \t]+; INLINE_SEPARATOR: '\n' (' ' | '\t')* BACKSLASH -> skip; LUA_CODE: 'lua' WS* '<<' WS* 'EOF' .*? 'EOF' -> skip; LUA_CODE2: 'lua' WS* '<<' WS* 'END' .*? 'END' -> skip; +COMMENT: '\n' WS* QUOTE ~('\n' | '\r')* -> skip; IGNORE: '"ideaVim ignore' .*? '"ideaVim ignore end' NEW_LINE -> skip; // All the other symbols