mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
fix(ide): highlight escapes in char
This commit is contained in:
parent
e9e57725aa
commit
f0c74b30ed
4 changed files with 55 additions and 4 deletions
|
@ -439,6 +439,16 @@ macro_rules! toho {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
let a = '\n';
|
||||
let a = '\t';
|
||||
let a = '\e'; // invalid escape
|
||||
let a = 'e';
|
||||
let a = ' ';
|
||||
let a = '\u{48}';
|
||||
let a = '\u{4823}';
|
||||
let a = '\x65';
|
||||
let a = '\x00';
|
||||
|
||||
println!("Hello {{Hello}}");
|
||||
// from https://doc.rust-lang.org/std/fmt/index.html
|
||||
println!("Hello"); // => "Hello"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue