@@ -320,16 +320,16 @@ pub(crate) fn highlight_as_html(db: &RootDatabase, file_id: FileId, rainbow: boo
320
320
fn highlight_name ( db : & RootDatabase , name_kind : NameKind ) -> & ' static str {
321
321
match name_kind {
322
322
Macro ( _) => tags:: MACRO ,
323
- Field ( _) => tags:: FIELD ,
324
- Def ( hir:: ModuleDef :: Module ( _) ) => tags:: MODULE ,
325
- Def ( hir:: ModuleDef :: Function ( _) ) => tags:: FUNCTION ,
326
- Def ( hir:: ModuleDef :: Adt ( _) ) => tags:: TYPE ,
327
- Def ( hir:: ModuleDef :: EnumVariant ( _) ) => tags:: CONSTANT ,
328
- Def ( hir:: ModuleDef :: Const ( _) ) => tags:: CONSTANT ,
329
- Def ( hir:: ModuleDef :: Static ( _) ) => tags:: CONSTANT ,
330
- Def ( hir:: ModuleDef :: Trait ( _) ) => tags:: TYPE ,
331
- Def ( hir:: ModuleDef :: TypeAlias ( _) ) => tags:: TYPE ,
332
- Def ( hir:: ModuleDef :: BuiltinType ( _) ) => tags:: TYPE_BUILTIN ,
323
+ StructField ( _) => tags:: FIELD ,
324
+ ModuleDef ( hir:: ModuleDef :: Module ( _) ) => tags:: MODULE ,
325
+ ModuleDef ( hir:: ModuleDef :: Function ( _) ) => tags:: FUNCTION ,
326
+ ModuleDef ( hir:: ModuleDef :: Adt ( _) ) => tags:: TYPE ,
327
+ ModuleDef ( hir:: ModuleDef :: EnumVariant ( _) ) => tags:: CONSTANT ,
328
+ ModuleDef ( hir:: ModuleDef :: Const ( _) ) => tags:: CONSTANT ,
329
+ ModuleDef ( hir:: ModuleDef :: Static ( _) ) => tags:: CONSTANT ,
330
+ ModuleDef ( hir:: ModuleDef :: Trait ( _) ) => tags:: TYPE ,
331
+ ModuleDef ( hir:: ModuleDef :: TypeAlias ( _) ) => tags:: TYPE ,
332
+ ModuleDef ( hir:: ModuleDef :: BuiltinType ( _) ) => tags:: TYPE_BUILTIN ,
333
333
SelfType ( _) => tags:: TYPE_SELF ,
334
334
TypeParam ( _) => tags:: TYPE_PARAM ,
335
335
Local ( local) => {
0 commit comments