mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Increase Highlights highlight range to covering element
This commit is contained in:
parent
81a9ad3672
commit
34d5d77cfa
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ pub(crate) fn highlight(
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut hl = highlights::Highlights::new(range_to_highlight);
|
let mut hl = highlights::Highlights::new(root.text_range());
|
||||||
traverse(&mut hl, &sema, &root, range_to_highlight, syntactic_name_ref_highlighting);
|
traverse(&mut hl, &sema, &root, range_to_highlight, syntactic_name_ref_highlighting);
|
||||||
hl.to_vec()
|
hl.to_vec()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue