Skip to content

Commit 5f81f6a

Browse files
committed
Make the FLOAT_LITERAL rule mention keywords as well as identifiers
1 parent 46d4a27 commit 5f81f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tokens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ let horse = example.0b10; // ERROR no field named `0b10`
444444
> **<sup>Lexer</sup>**\
445445
> FLOAT_LITERAL :\
446446
> &nbsp;&nbsp; &nbsp;&nbsp; DEC_LITERAL `.`
447-
> _(not immediately followed by `.`, `_` or an [identifier]_)\
447+
> _(not immediately followed by `.`, `_` or an [identifier] or [keyword][keywords]_)\
448448
> &nbsp;&nbsp; | DEC_LITERAL FLOAT_EXPONENT\
449449
> &nbsp;&nbsp; | DEC_LITERAL `.` DEC_LITERAL FLOAT_EXPONENT<sup>?</sup>\
450450
> &nbsp;&nbsp; | DEC_LITERAL (`.` DEC_LITERAL)<sup>?</sup>

0 commit comments

Comments
 (0)