diff options
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs index 19ecd54d6..f6b52c35d 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs | |||
@@ -363,6 +363,7 @@ fn highlight_element( | |||
363 | highlight_name(db, def) | HighlightModifier::Definition | 363 | highlight_name(db, def) | HighlightModifier::Definition |
364 | } | 364 | } |
365 | Some(NameClass::ConstReference(def)) => highlight_name(db, def), | 365 | Some(NameClass::ConstReference(def)) => highlight_name(db, def), |
366 | Some(NameClass::FieldShorthand { .. }) => HighlightTag::Field.into(), | ||
366 | None => highlight_name_by_syntax(name) | HighlightModifier::Definition, | 367 | None => highlight_name_by_syntax(name) | HighlightModifier::Definition, |
367 | } | 368 | } |
368 | } | 369 | } |