diff options
Diffstat (limited to 'crates/ra_ide_api/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ra_ide_api/src/syntax_highlighting.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ra_ide_api/src/syntax_highlighting.rs b/crates/ra_ide_api/src/syntax_highlighting.rs index 06ccf0728..86ab3a260 100644 --- a/crates/ra_ide_api/src/syntax_highlighting.rs +++ b/crates/ra_ide_api/src/syntax_highlighting.rs | |||
@@ -107,9 +107,7 @@ pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Vec<HighlightedRa | |||
107 | Some(AssocItem(hir::ImplItem::TypeAlias(_))) => "type", | 107 | Some(AssocItem(hir::ImplItem::TypeAlias(_))) => "type", |
108 | Some(Def(hir::ModuleDef::Module(_))) => "module", | 108 | Some(Def(hir::ModuleDef::Module(_))) => "module", |
109 | Some(Def(hir::ModuleDef::Function(_))) => "function", | 109 | Some(Def(hir::ModuleDef::Function(_))) => "function", |
110 | Some(Def(hir::ModuleDef::Struct(_))) => "type", | 110 | Some(Def(hir::ModuleDef::Adt(_))) => "type", |
111 | Some(Def(hir::ModuleDef::Union(_))) => "type", | ||
112 | Some(Def(hir::ModuleDef::Enum(_))) => "type", | ||
113 | Some(Def(hir::ModuleDef::EnumVariant(_))) => "constant", | 111 | Some(Def(hir::ModuleDef::EnumVariant(_))) => "constant", |
114 | Some(Def(hir::ModuleDef::Const(_))) => "constant", | 112 | Some(Def(hir::ModuleDef::Const(_))) => "constant", |
115 | Some(Def(hir::ModuleDef::Static(_))) => "constant", | 113 | Some(Def(hir::ModuleDef::Static(_))) => "constant", |