Skip to content

Commit 808945c

Browse files
committed
Handle range in model lexer correctly #15877
1 parent 3dcc409 commit 808945c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/grammar/RustLexer.g4

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ LIT_INTEGER
112112
;
113113

114114
LIT_FLOAT
115-
: [0-9][0-9_]* ('.' | ('.' [0-9][0-9_]*)? ([eE] [-+]? [0-9][0-9_]*)? SUFFIX?)
115+
: [0-9][0-9_]* ( '.' {_input.LA(1) != '.'}?
116+
| ('.' [0-9][0-9_]*)? ([eE] [-+]? [0-9][0-9_]*)? SUFFIX?)
116117
;
117118

118119
LIT_STR

0 commit comments

Comments
 (0)