Commit cf6260ad authored by Matthew Dawson's avatar Matthew Dawson
Browse files

Allow variables with _ in their names.

Underscores are fine characters for names.  Allow their use as well.  This is
just a change in the lexer, which wouldn't recognize them.
parent d7883686
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ lexer grammar VariableParserLexer;

tokens { ID }

fragment IDRule: [a-zA-Z][a-zA-Z0-9]*; //Variable identifier.  Start with letter, then alpha numerical allowed.
fragment IDRule: [a-zA-Z][a-zA-Z0-9_]*; //Variable identifier.  Start with letter, then alpha numerical allowed with underscores.

REGULAR_ID: IDRule -> type(ID), pushMode(VARIABLE_TYPE);