For example, here I am expecting sum
and FILENAME
to be in different colors than the rest of the string literal:
I am using VSCode with rust-analyzer v0.4.1395 (Pre-release).
Seems like Markdown also has this problem:
println!("this is a formatted string with a {variable}, and an expression: {3+5}");
edit:
- An example for my expectation can be seen in @Finomnis 's answer.
- As noted by people in the comments, expressions such as
{3+5}
are not supported in formatted strings in Rust.