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
This commit is contained in:
Patrick Reisert 2014-09-29 12:52:35 +02:00
parent eb816eee0f
commit 9cc366311d
1 changed files with 1 additions and 2 deletions

View File

@ -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