From 28b6a30752c7c5b9ef188cbf308acb570be0e833 Mon Sep 17 00:00:00 2001 From: Jake Date: Tue, 3 Aug 2021 09:54:27 -0700 Subject: [PATCH] Update crates/ide/src/syntax_highlighting/highlight.rs Co-authored-by: Aleksey Kladov --- crates/ide/src/syntax_highlighting/highlight.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ide/src/syntax_highlighting/highlight.rs b/crates/ide/src/syntax_highlighting/highlight.rs index d0fecc6956fa..19baf5d20d33 100644 --- a/crates/ide/src/syntax_highlighting/highlight.rs +++ b/crates/ide/src/syntax_highlighting/highlight.rs @@ -489,7 +489,8 @@ fn highlight_def(db: &RootDatabase, krate: Option, def: Definition) let ty = local.ty(db); if local.is_mut(db) || ty.is_mutable_reference() { h |= HlMod::Mutable; - } else if local.is_ref(db) || ty.is_reference() { + } + if local.is_ref(db) || ty.is_reference() { h |= HlMod::Reference; } if ty.as_callable(db).is_some() || ty.impls_fnonce(db) {