diff options
| author | Florian Hahn <flo@fhahn.com> | 2014-12-29 21:29:31 +0100 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2014-12-29 21:29:31 +0100 |
| commit | 808945c21c5128e4db2b23c4107c8b9d7e3382e1 (patch) | |
| tree | 427ce843309e342e3e1e723360b091bf4c7f3c6b | |
| parent | 3dcc409fac18a258ba2a8af4345d9566ec8eebad (diff) | |
| download | rust-808945c21c5128e4db2b23c4107c8b9d7e3382e1.tar.gz rust-808945c21c5128e4db2b23c4107c8b9d7e3382e1.zip | |
Handle range in model lexer correctly #15877
| -rw-r--r-- | src/grammar/RustLexer.g4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/grammar/RustLexer.g4 b/src/grammar/RustLexer.g4 index 0ff9af7aca1..00af6d358e5 100644 --- a/src/grammar/RustLexer.g4 +++ b/src/grammar/RustLexer.g4 @@ -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 |
