From 2145e2d878fb3b8ffcaa4ab0858cab3a7a4324e0 Mon Sep 17 00:00:00 2001 From: Leander Tentrup Date: Wed, 17 Jun 2020 15:27:13 +0200 Subject: Syntax highlighting for escape sequences in strings --- crates/ra_ide/src/syntax_highlighting/tests.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_ide/src/syntax_highlighting/tests.rs') diff --git a/crates/ra_ide/src/syntax_highlighting/tests.rs b/crates/ra_ide/src/syntax_highlighting/tests.rs index ebf5b50ac..b4d56a7a0 100644 --- a/crates/ra_ide/src/syntax_highlighting/tests.rs +++ b/crates/ra_ide/src/syntax_highlighting/tests.rs @@ -246,6 +246,10 @@ fn main() { println!(r"Hello, {}!", "world"); + // escape sequences + println!("Hello\nWorld"); + println!("\u{48}\x65\x6C\x6C\x6F World"); + println!("{\x41}", A = 92); println!("{ничоси}", ничоси = 92); }"# -- cgit v1.2.3