mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Make syntax highlighting linear
This commit is contained in:
parent
7e70fc22a7
commit
c640c2ea11
4 changed files with 78 additions and 57 deletions
|
@ -8,8 +8,8 @@ use hir_def::{
|
|||
dyn_map::DynMap,
|
||||
keys::{self, Key},
|
||||
resolver::{HasResolver, Resolver},
|
||||
ConstId, DefWithBodyId, EnumId, FunctionId, ImplId, ModuleId, StaticId, StructId, TraitId,
|
||||
UnionId, VariantId,
|
||||
ConstId, DefWithBodyId, EnumId, EnumVariantId, FunctionId, ImplId, ModuleId, StaticId,
|
||||
StructFieldId, StructId, TraitId, TypeAliasId, UnionId, VariantId,
|
||||
};
|
||||
use hir_expand::InFile;
|
||||
use ra_prof::profile;
|
||||
|
@ -166,6 +166,8 @@ to_id_impls![
|
|||
(FunctionId, ast::FnDef, keys::FUNCTION),
|
||||
(StaticId, ast::StaticDef, keys::STATIC),
|
||||
(ConstId, ast::ConstDef, keys::CONST),
|
||||
// (TypeAlias, TypeAliasId, ast::TypeAliasDef, keys::TYPE_ALIAS),
|
||||
(TypeAliasId, ast::TypeAliasDef, keys::TYPE_ALIAS),
|
||||
(ImplId, ast::ImplBlock, keys::IMPL),
|
||||
(StructFieldId, ast::RecordFieldDef, keys::RECORD_FIELD),
|
||||
(EnumVariantId, ast::EnumVariant, keys::ENUM_VARIANT),
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue