mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
added decorations
This commit is contained in:
parent
30672c420e
commit
67641d3f5f
3 changed files with 63 additions and 3 deletions
|
@ -225,8 +225,8 @@ fn highlight_name(db: &RootDatabase, name_kind: NameKind) -> &'static str {
|
|||
Def(hir::ModuleDef::EnumVariant(_)) => "constant",
|
||||
Def(hir::ModuleDef::Const(_)) => "constant",
|
||||
Def(hir::ModuleDef::Static(_)) => "constant",
|
||||
Def(hir::ModuleDef::Trait(_)) => "type.trait",
|
||||
Def(hir::ModuleDef::TypeAlias(_)) => "type.alias",
|
||||
Def(hir::ModuleDef::Trait(_)) => "type",
|
||||
Def(hir::ModuleDef::TypeAlias(_)) => "type",
|
||||
Def(hir::ModuleDef::BuiltinType(_)) => "type.builtin",
|
||||
SelfType(_) => "type.self",
|
||||
TypeParam(_) => "type.param",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue