-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
This line in the lexer:
language-rust/src/Language/Rust/Parser/Lexer.x
Line 1048 in 9d509c4
| @lit_float2 / ( [^\._a-zA-Z] | \r | \n ) |
Implements the "not immediately followed" part in the Rust lexical syntax spec: https://doc.rust-lang.org/reference/tokens.html#floating-point-literals
The code uses _a-zA-Z as the beginning of an identifier, but according to Rust spec any XID_Start is a valid identifier first character, so that part of the lexer should be updated with _ and @xid_start. (not sure what the right syntax for this is in alex)
(I don't have Haskell toolchain installed otherwise I would submit a PR)
Metadata
Metadata
Assignees
Labels
No labels