mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Disable string highlight injection for macros changing string literals
This commit is contained in:
parent
ec07bb98f8
commit
f3b25a6fc8
3 changed files with 31 additions and 29 deletions
|
@ -10,9 +10,10 @@ use crate::{syntax_highlighting::highlights::Highlights, HlRange, HlTag};
|
|||
pub(super) fn highlight_format_string(
|
||||
stack: &mut Highlights,
|
||||
string: &ast::String,
|
||||
expanded_string: &ast::String,
|
||||
range: TextRange,
|
||||
) {
|
||||
if is_format_string(string).is_none() {
|
||||
if is_format_string(expanded_string).is_none() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue