diff options
author | Leander Tentrup <[email protected]> | 2020-04-22 14:28:35 +0100 |
---|---|---|
committer | Leander Tentrup <[email protected]> | 2020-04-22 14:28:35 +0100 |
commit | 445052f6d426043b543033f3fa4594fc1a09d7fa (patch) | |
tree | 3638c65c16b78f142101a87274edd94d647b6745 /crates/ra_ide/src/syntax_highlighting | |
parent | b2829a52161bc414f3b361c06b66633a234bba16 (diff) |
Adapt format specifier highlighting to support escaped squences and unicode identifiers
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/tests.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/tests.rs b/crates/ra_ide/src/syntax_highlighting/tests.rs index f198767ce..a9aae957f 100644 --- a/crates/ra_ide/src/syntax_highlighting/tests.rs +++ b/crates/ra_ide/src/syntax_highlighting/tests.rs | |||
@@ -223,6 +223,11 @@ fn main() { | |||
223 | println!("{}, `{name:>8.*}` has 3 right-aligned characters", "Hello", 3, name="1234.56"); | 223 | println!("{}, `{name:>8.*}` has 3 right-aligned characters", "Hello", 3, name="1234.56"); |
224 | println!("Hello {{}}"); | 224 | println!("Hello {{}}"); |
225 | println!("{{ Hello"); | 225 | println!("{{ Hello"); |
226 | |||
227 | println!(r"Hello, {}!", "world"); | ||
228 | |||
229 | println!("{\x41}", A = 92); | ||
230 | println!("{ничоси}", ничоси = 92); | ||
226 | }"# | 231 | }"# |
227 | .trim(), | 232 | .trim(), |
228 | ); | 233 | ); |