From c640c2ea114f21bc6e4913dac38cdc451c41ceae Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 14 Jan 2020 17:24:00 +0100 Subject: Make syntax highlighting linear --- crates/ra_hir/src/source_binder.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'crates/ra_hir/src/source_binder.rs') diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs index ca003576a..00541dbe1 100644 --- a/crates/ra_hir/src/source_binder.rs +++ b/crates/ra_hir/src/source_binder.rs @@ -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), ]; -- cgit v1.2.3