mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Adapt format specifier highlighting to support escaped squences and unicode identifiers
This commit is contained in:
parent
b2829a5216
commit
445052f6d4
4 changed files with 208 additions and 143 deletions
|
@ -223,6 +223,11 @@ fn main() {
|
|||
println!("{}, `{name:>8.*}` has 3 right-aligned characters", "Hello", 3, name="1234.56");
|
||||
println!("Hello {{}}");
|
||||
println!("{{ Hello");
|
||||
|
||||
println!(r"Hello, {}!", "world");
|
||||
|
||||
println!("{\x41}", A = 92);
|
||||
println!("{ничоси}", ничоси = 92);
|
||||
}"#
|
||||
.trim(),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue