diff options
author | Aleksey Kladov <[email protected]> | 2020-02-07 13:26:59 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-07 13:26:59 +0000 |
commit | ae70d072374f3c4d14abdccbe61661cf02b41b33 (patch) | |
tree | 7b4540f55d2cae95e2682920a6946736a22c351f /crates/ra_ide/src/syntax_highlighting.rs | |
parent | f55be75a17dab2ca23b34c45e7597fe19a5fc8e4 (diff) |
Rename
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs index c970f5d34..174e13595 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs | |||
@@ -320,16 +320,16 @@ pub(crate) fn highlight_as_html(db: &RootDatabase, file_id: FileId, rainbow: boo | |||
320 | fn highlight_name(db: &RootDatabase, name_kind: NameKind) -> &'static str { | 320 | fn highlight_name(db: &RootDatabase, name_kind: NameKind) -> &'static str { |
321 | match name_kind { | 321 | match name_kind { |
322 | Macro(_) => tags::MACRO, | 322 | Macro(_) => tags::MACRO, |
323 | Field(_) => tags::FIELD, | 323 | StructField(_) => tags::FIELD, |
324 | Def(hir::ModuleDef::Module(_)) => tags::MODULE, | 324 | ModuleDef(hir::ModuleDef::Module(_)) => tags::MODULE, |
325 | Def(hir::ModuleDef::Function(_)) => tags::FUNCTION, | 325 | ModuleDef(hir::ModuleDef::Function(_)) => tags::FUNCTION, |
326 | Def(hir::ModuleDef::Adt(_)) => tags::TYPE, | 326 | ModuleDef(hir::ModuleDef::Adt(_)) => tags::TYPE, |
327 | Def(hir::ModuleDef::EnumVariant(_)) => tags::CONSTANT, | 327 | ModuleDef(hir::ModuleDef::EnumVariant(_)) => tags::CONSTANT, |
328 | Def(hir::ModuleDef::Const(_)) => tags::CONSTANT, | 328 | ModuleDef(hir::ModuleDef::Const(_)) => tags::CONSTANT, |
329 | Def(hir::ModuleDef::Static(_)) => tags::CONSTANT, | 329 | ModuleDef(hir::ModuleDef::Static(_)) => tags::CONSTANT, |
330 | Def(hir::ModuleDef::Trait(_)) => tags::TYPE, | 330 | ModuleDef(hir::ModuleDef::Trait(_)) => tags::TYPE, |
331 | Def(hir::ModuleDef::TypeAlias(_)) => tags::TYPE, | 331 | ModuleDef(hir::ModuleDef::TypeAlias(_)) => tags::TYPE, |
332 | Def(hir::ModuleDef::BuiltinType(_)) => tags::TYPE_BUILTIN, | 332 | ModuleDef(hir::ModuleDef::BuiltinType(_)) => tags::TYPE_BUILTIN, |
333 | SelfType(_) => tags::TYPE_SELF, | 333 | SelfType(_) => tags::TYPE_SELF, |
334 | TypeParam(_) => tags::TYPE_PARAM, | 334 | TypeParam(_) => tags::TYPE_PARAM, |
335 | Local(local) => { | 335 | Local(local) => { |