Add Static and Const highlighting token types

This commit is contained in:
Lukas Wirth 2024-04-15 16:54:17 +02:00
parent 91659da5a6
commit 6b98e55dbb
6 changed files with 107 additions and 95 deletions

View file

@ -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;