Skip to content

Commit 9cc3663

Browse files
committed
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
1 parent eb816ee commit 9cc3663

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/grammar/RustLexer.g4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ LIT_INTEGER
120120
| '0x' [0-9a-fA-F][0-9a-fA-F_]* INT_SUFFIX?
121121
;
122122

123-
FLOAT_SUFFIX
123+
fragment FLOAT_SUFFIX
124124
: 'f32'
125125
| 'f64'
126-
| 'f128'
127126
;
128127

129128
LIT_FLOAT

0 commit comments

Comments
 (0)