mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
fix: ide: do not highlight escapes in raw strings
This commit is contained in:
parent
2fdd1ac510
commit
157069e232
3 changed files with 6 additions and 1 deletions
|
@ -422,7 +422,10 @@ fn traverse(
|
|||
continue;
|
||||
}
|
||||
highlight_format_string(hl, &string, &expanded_string, range);
|
||||
highlight_escape_string(hl, &string, range.start());
|
||||
|
||||
if !string.is_raw() {
|
||||
highlight_escape_string(hl, &string, range.start());
|
||||
}
|
||||
}
|
||||
} else if ast::ByteString::can_cast(token.kind())
|
||||
&& ast::ByteString::can_cast(descended_token.kind())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue