You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
0.3.1533-standalone 0.4.1539-standalone
rustc version: (eg. output of rustc -V)
rustc 1.69.0 rustc 1.70.0
relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME)
default by cargo new XXXX
Report
Wacky color highlighting caused by declarative macro inside another declarative macro in VS Code.
Expected(?) (before rust-analyzer loaded) result:
Actual result:
Code:
let bol = true;
// minimal reproduction
let _ = format!("{}", {
format!("");
bol
},);
let _ = format!(
"{}{}{}",
// ok
if bol { "beep" } else { "boop" },
// broke here
format!("beep"),
// broken :(
if bol {
"beep"
} else {
match bol {
true => "beep",
false => "boop",
}
}
);
The text was updated successfully, but these errors were encountered:
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
0.3.1533-standalone
0.4.1539-standalone
rustc version: (eg. output of
rustc -V
)rustc 1.69.0
rustc 1.70.0
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)default by
cargo new XXXX
Report
Wacky color highlighting caused by declarative macro inside another declarative macro in VS Code.
Expected(?) (before rust-analyzer loaded) result:
Actual result:
Code:
The text was updated successfully, but these errors were encountered: