Skip to content

Commit

Permalink
Accept single-line comments until newline char
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Durham <[email protected]>
  • Loading branch information
camerondurham committed Jan 9, 2024
1 parent d325b02 commit 88912d1
Show file tree
Hide file tree
Showing 2 changed files with 374 additions and 376 deletions.
2 changes: 1 addition & 1 deletion modules/lang-painless/src/main/antlr/PainlessLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected abstract boolean isSlashRegex();
}

WS: [ \t\n\r]+ -> skip;
COMMENT: ( '//' .*? ([\n\r] | EOF) | '/*' .*? '*/' ) -> skip;
COMMENT: ( '//' ~[\n\r]* | '/*' .*? '*/' ) -> skip;

LBRACK: '{';
RBRACK: '}';
Expand Down
Loading

0 comments on commit 88912d1

Please sign in to comment.