This commit is contained in:
Jake Heinz 2021-12-01 12:25:08 +00:00
parent d2480ecb9f
commit ba92bb1ed9

View File

@ -286,7 +286,7 @@ fn highlight_name_ref(
// within a function with a self param, pretend to still be `self`, rather than // within a function with a self param, pretend to still be `self`, rather than
// an unresolved reference. // an unresolved reference.
if name_ref.self_token().is_some() && is_in_fn_with_self_param(&name_ref) { if name_ref.self_token().is_some() && is_in_fn_with_self_param(&name_ref) {
HlTag::Symbol(SymbolKind::SelfParam).into() SymbolKind::SelfParam.into()
} else { } else {
HlTag::UnresolvedReference.into() HlTag::UnresolvedReference.into()
} }