Stream: general

Topic: lexing floats


Phil Ellison (Jul 28 2019 at 19:17, on Zulip):

I'm looking at an issue with rust-analyser: https://github.com/rust-analyzer/rust-analyzer/issues/1592

This appears to come from the rustc lexer deciding that 42f64 is an integer literal: https://github.com/rust-lang/rust/blob/master/src/librustc_lexer/src/lib.rs#L419

Is this a bug in the lexer, or does rustc have special handling for this somewhere higher up?

Last update: Nov 21 2019 at 23:30UTC