Skip to content

Commit ff23d79

Browse files
committed
tweak antlr grammar to allow testing grammars in intellij plugin preview.
1 parent d4c3627 commit ff23d79

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

java/grammars/org/antlr/codebuff/ANTLRv4Lexer.g4

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ NOT : '~' ;
165165
RBRACE : '}' ;
166166

167167
/** Allow unicode rule/token names */
168-
ID : NameStartChar NameChar*;
168+
//ID : NameStartChar NameChar*;
169+
// ##################### to allow testing ANTLR grammars in intellij preview
170+
RULE_REF : [a-z][a-zA-Z_0-9]* ;
171+
TOKEN_REF : [A-Z][a-zA-Z_0-9]* ;
172+
169173

170174
fragment
171175
NameChar

0 commit comments

Comments
 (0)