Skip to content

Commit 28111b9

Browse files
committed
perf: optimize preprocessor parser
1 parent 214b1c8 commit 28111b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/engine/src/main/antlr4/org/eclipse/lsp/cobol/core/CobolPreprocessor.g4

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ parser grammar CobolPreprocessor;
1010
options {tokenVocab = CobolPreprocessorLexer;}
1111

1212
startRule
13-
: .*? ((includeStatement | copyStatement | replaceAreaStartOrOffStatement | titleDirective | enterDirective
14-
| controlDirective | plusplusIncludeStatement)+ .*?)* EOF
13+
: (includeStatement | copyStatement | replaceAreaStartOrOffStatement | titleDirective | enterDirective
14+
| controlDirective | plusplusIncludeStatement | .)* EOF
1515
;
1616

1717
// copy statement

0 commit comments

Comments
 (0)