diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-06-08 13:46:12 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-08 13:46:12 +0100 |
commit | 83fd0fb35573985a5f6d055ce87888fac8ca3535 (patch) | |
tree | ab266d21f8ce7d414644e0340b247ca083441795 /crates/ra_ide/src/syntax_highlighting.rs | |
parent | db36a25839be0a799be2a229b9fd0d45da57635b (diff) | |
parent | 48b6dd0b332d43268796b30128502e618b5b975e (diff) |
Merge #4775
4775: Add goto def for enum variant field r=matklad a=unexge
Closes #4764. I'm not familiar with ra codebase, there might be better ways to do that :smile:
Co-authored-by: unexge <[email protected]>
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 6903403b2..9ff7356c9 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs | |||
@@ -436,6 +436,7 @@ fn highlight_element( | |||
436 | highlight_name(db, def) | HighlightModifier::Definition | 436 | highlight_name(db, def) | HighlightModifier::Definition |
437 | } | 437 | } |
438 | Some(NameClass::ConstReference(def)) => highlight_name(db, def), | 438 | Some(NameClass::ConstReference(def)) => highlight_name(db, def), |
439 | Some(NameClass::FieldShorthand { .. }) => HighlightTag::Field.into(), | ||
439 | None => highlight_name_by_syntax(name) | HighlightModifier::Definition, | 440 | None => highlight_name_by_syntax(name) | HighlightModifier::Definition, |
440 | } | 441 | } |
441 | } | 442 | } |