We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a084e6 + 9b4ca77 commit 1cf1359Copy full SHA for 1cf1359
crates/ide/src/syntax_highlighting/highlight.rs
@@ -262,6 +262,13 @@ fn highlight_name_ref(
262
None if name_ref.self_token().is_some() && is_in_fn_with_self_param(&name_ref) => {
263
return SymbolKind::SelfParam.into()
264
}
265
+ // FIXME: This is required for helper attributes used by proc-macros, as those do not map down
266
+ // to anything when used.
267
+ // We can fix this for derive attributes since derive helpers are recorded, but not for
268
+ // general attributes.
269
+ None if name_ref.syntax().ancestors().any(|it| it.kind() == ATTR) => {
270
+ return HlTag::Symbol(SymbolKind::Attribute).into();
271
+ }
272
None => return HlTag::UnresolvedReference.into(),
273
};
274
let mut h = match name_class {
0 commit comments