@@ -320,16 +320,16 @@ pub(crate) fn highlight_as_html(db: &RootDatabase, file_id: FileId, rainbow: boo
320320fn highlight_name ( db : & RootDatabase , name_kind : NameKind ) -> & ' static str {
321321 match name_kind {
322322 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 ,
333333 SelfType ( _) => tags:: TYPE_SELF ,
334334 TypeParam ( _) => tags:: TYPE_PARAM ,
335335 Local ( local) => {
0 commit comments