mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Remove syntax highlighting hack for builtin attrs
This commit is contained in:
parent
e58af219a4
commit
d1677f3286
13 changed files with 62 additions and 83 deletions
|
@ -232,6 +232,7 @@ impl CompletionItemKind {
|
|||
pub(crate) fn tag(&self) -> &'static str {
|
||||
match self {
|
||||
CompletionItemKind::SymbolKind(kind) => match kind {
|
||||
SymbolKind::BuiltinAttr => "ba",
|
||||
SymbolKind::Const => "ct",
|
||||
SymbolKind::ConstParam => "cp",
|
||||
SymbolKind::Enum => "en",
|
||||
|
@ -246,6 +247,7 @@ impl CompletionItemKind {
|
|||
SymbolKind::SelfParam => "sp",
|
||||
SymbolKind::Static => "sc",
|
||||
SymbolKind::Struct => "st",
|
||||
SymbolKind::Tool => "tl",
|
||||
SymbolKind::Trait => "tt",
|
||||
SymbolKind::TypeAlias => "ta",
|
||||
SymbolKind::TypeParam => "tp",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue