mirror of https://github.com/rust-lang/rust.git
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:
parent
eb816eee0f
commit
9cc366311d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue