mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Rename
This commit is contained in:
parent
f55be75a17
commit
ae70d07237
6 changed files with 23 additions and 23 deletions
|
@ -320,16 +320,16 @@ pub(crate) fn highlight_as_html(db: &RootDatabase, file_id: FileId, rainbow: boo
|
|||
fn highlight_name(db: &RootDatabase, name_kind: NameKind) -> &'static str {
|
||||
match name_kind {
|
||||
Macro(_) => tags::MACRO,
|
||||
Field(_) => tags::FIELD,
|
||||
Def(hir::ModuleDef::Module(_)) => tags::MODULE,
|
||||
Def(hir::ModuleDef::Function(_)) => tags::FUNCTION,
|
||||
Def(hir::ModuleDef::Adt(_)) => tags::TYPE,
|
||||
Def(hir::ModuleDef::EnumVariant(_)) => tags::CONSTANT,
|
||||
Def(hir::ModuleDef::Const(_)) => tags::CONSTANT,
|
||||
Def(hir::ModuleDef::Static(_)) => tags::CONSTANT,
|
||||
Def(hir::ModuleDef::Trait(_)) => tags::TYPE,
|
||||
Def(hir::ModuleDef::TypeAlias(_)) => tags::TYPE,
|
||||
Def(hir::ModuleDef::BuiltinType(_)) => tags::TYPE_BUILTIN,
|
||||
StructField(_) => tags::FIELD,
|
||||
ModuleDef(hir::ModuleDef::Module(_)) => tags::MODULE,
|
||||
ModuleDef(hir::ModuleDef::Function(_)) => tags::FUNCTION,
|
||||
ModuleDef(hir::ModuleDef::Adt(_)) => tags::TYPE,
|
||||
ModuleDef(hir::ModuleDef::EnumVariant(_)) => tags::CONSTANT,
|
||||
ModuleDef(hir::ModuleDef::Const(_)) => tags::CONSTANT,
|
||||
ModuleDef(hir::ModuleDef::Static(_)) => tags::CONSTANT,
|
||||
ModuleDef(hir::ModuleDef::Trait(_)) => tags::TYPE,
|
||||
ModuleDef(hir::ModuleDef::TypeAlias(_)) => tags::TYPE,
|
||||
ModuleDef(hir::ModuleDef::BuiltinType(_)) => tags::TYPE_BUILTIN,
|
||||
SelfType(_) => tags::TYPE_SELF,
|
||||
TypeParam(_) => tags::TYPE_PARAM,
|
||||
Local(local) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue