diff options
| author | Patrick Reisert <kpreisert@gmail.com> | 2014-09-29 12:52:35 +0200 |
|---|---|---|
| committer | Patrick Reisert <kpreisert@gmail.com> | 2014-09-29 12:52:35 +0200 |
| commit | 9cc366311dbdeaf0d5e22648352c9ceed7e315e4 (patch) | |
| tree | ea2f9c237dbba0557b89822aa422f837de15050c /src/grammar/RustLexer.g4 | |
| parent | eb816eee0f1803f03fbf046a26a1920659c14d82 (diff) | |
| download | rust-9cc366311dbdeaf0d5e22648352c9ceed7e315e4.tar.gz rust-9cc366311dbdeaf0d5e22648352c9ceed7e315e4.zip | |
Update ANTLR float suffix grammar
- Removes f128 from the grammar, which is no longer support in rustc - The fragment modifier is added so it won't parse float suffix as a separate token
Diffstat (limited to 'src/grammar/RustLexer.g4')
| -rw-r--r-- | src/grammar/RustLexer.g4 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/grammar/RustLexer.g4 b/src/grammar/RustLexer.g4 index f2705e5421b..e8165dabce5 100644 --- a/src/grammar/RustLexer.g4 +++ b/src/grammar/RustLexer.g4 @@ -120,10 +120,9 @@ LIT_INTEGER | '0x' [0-9a-fA-F][0-9a-fA-F_]* INT_SUFFIX? ; -FLOAT_SUFFIX +fragment FLOAT_SUFFIX : 'f32' | 'f64' - | 'f128' ; LIT_FLOAT |
