Add FieldShorthand variant to NameClass

This commit is contained in:
unexge
2020-06-08 14:46:58 +03:00
parent 73684a4ae2
commit c5d5d21858
3 changed files with 32 additions and 27 deletions

View File

@@ -363,6 +363,7 @@ fn highlight_element(
highlight_name(db, def) | HighlightModifier::Definition
}
Some(NameClass::ConstReference(def)) => highlight_name(db, def),
Some(NameClass::FieldShorthand { .. }) => HighlightTag::Field.into(),
None => highlight_name_by_syntax(name) | HighlightModifier::Definition,
}
}