Catch small edge-case in parser

This commit is contained in:
Kenzie Togami
2019-10-27 12:58:32 -07:00
parent ae71c2a51b
commit 777b132a04
2 changed files with 6 additions and 1 deletions

View File

@ -63,7 +63,7 @@ fragment EXP_CHAR : [eE] ;
fragment DECIMAL : '.' DIGIT+ ( EXP_CHAR SIGN? DIGIT+ )? ;
// All numbers are treated the same. No int/dec divide.
NUMBER : SIGN? ( DIGIT+ DECIMAL? | DECIMAL ) ;
NUMBER : ( DIGIT+ DECIMAL? | DECIMAL ) ;
ID : [A-Za-z] [0-9A-Za-z_]* ;