Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
| -rw-r--r-- | crates/ide/src/syntax_highlighting/tests.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index efd03c2823..f9c2404c35 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs @@ -477,6 +477,20 @@ fn main() { } #[test] +fn test_byte_string_highlight() { + check_highlighting( + r#" +fn main() { + let _ = "\x28\x28\x00\x63\n"; + let _ = b"\x28\x28\x00\x63\n"; +} +"#, + expect_file!["./test_data/highlight_byte_string.html"], + false, + ); +} + +#[test] fn test_unsafe_highlighting() { check_highlighting( r#" |