diff options
author | unexge <[email protected]> | 2020-06-08 12:46:58 +0100 |
---|---|---|
committer | unexge <[email protected]> | 2020-06-08 12:46:58 +0100 |
commit | c5d5d2185816d90ad1420fe544d93150cb9c9a48 (patch) | |
tree | 8cf69565065eac4536a6b4cbaa47a4b01b6d59e1 /crates/ra_ide/src/syntax_highlighting.rs | |
parent | 73684a4ae2ff5251bbff35109d2c9ad40fe4ef01 (diff) |
Add `FieldShorthand` variant to `NameClass`
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 | } |