Handle range in model lexer correctly #15877

This commit is contained in:
Florian Hahn 2014-12-29 21:29:31 +01:00
parent 3dcc409fac
commit 808945c21c

View File

@ -112,7 +112,8 @@ LIT_INTEGER
;
LIT_FLOAT
: [0-9][0-9_]* ('.' | ('.' [0-9][0-9_]*)? ([eE] [-+]? [0-9][0-9_]*)? SUFFIX?)
: [0-9][0-9_]* ( '.' {_input.LA(1) != '.'}?
| ('.' [0-9][0-9_]*)? ([eE] [-+]? [0-9][0-9_]*)? SUFFIX?)
;
LIT_STR