Skip to content

Commit f8166ca

Browse files
committed
Add missing name-ref parents to syntactic highlighting
1 parent 5e7dd31 commit f8166ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ide/src/syntax_highlighting/highlight.rs

+3
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@ fn highlight_name_ref_by_syntax(
824824
h.into()
825825
}
826826
}
827+
RECORD_EXPR_FIELD | RECORD_PAT_FIELD => HlTag::Symbol(SymbolKind::Field).into(),
827828
PATH_SEGMENT => {
828829
let name_based_fallback = || {
829830
if name.text().chars().next().unwrap_or_default().is_uppercase() {
@@ -862,6 +863,8 @@ fn highlight_name_ref_by_syntax(
862863
.into(),
863864
}
864865
}
866+
ASSOC_TYPE_ARG => SymbolKind::TypeAlias.into(),
867+
USE_BOUND_GENERIC_ARG => SymbolKind::TypeParam.into(),
865868
_ => default.into(),
866869
}
867870
}

0 commit comments

Comments
 (0)