mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Add Static and Const highlighting token types
This commit is contained in:
parent
91659da5a6
commit
6b98e55dbb
6 changed files with 107 additions and 95 deletions
|
|
@ -444,7 +444,6 @@ pub(super) fn highlight_def(
|
|||
Definition::Variant(_) => Highlight::new(HlTag::Symbol(SymbolKind::Variant)),
|
||||
Definition::Const(konst) => {
|
||||
let mut h = Highlight::new(HlTag::Symbol(SymbolKind::Const)) | HlMod::Const;
|
||||
|
||||
if let Some(item) = konst.as_assoc_item(db) {
|
||||
h |= HlMod::Associated;
|
||||
h |= HlMod::Static;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue