We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec781d commit b6be1b6Copy full SHA for b6be1b6
crates/ra_syntax/src/ast/expr_extensions.rs
@@ -322,6 +322,11 @@ impl ast::Literal {
322
323
match token.kind() {
324
INT_NUMBER => {
325
+ // FYI: there was a bug here previously, thus an if statement here is necessary.
326
+ // The lexer treated e.g. `1f64` as an integer literal. See
327
+ // https://github.com/rust-analyzer/rust-analyzer/issues/1592
328
+ // and the comments on the linked PR.
329
+
330
let text = token.text();
331
332
if let suffix @ Some(_) = Self::find_suffix(&text, &FLOAT_SUFFIXES) {
0 commit comments