mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Color attribute functions
This commit is contained in:
parent
38e8f35855
commit
47ce5ea581
7 changed files with 24 additions and 4 deletions
|
@ -361,7 +361,9 @@ fn highlight_element(
|
|||
}
|
||||
|
||||
// Highlight references like the definitions they resolve to
|
||||
NAME_REF if element.ancestors().any(|it| it.kind() == ATTR) => return None,
|
||||
NAME_REF if element.ancestors().any(|it| it.kind() == ATTR) => {
|
||||
Highlight::from(HighlightTag::Function) | HighlightModifier::Attribute
|
||||
}
|
||||
NAME_REF => {
|
||||
let name_ref = element.into_node().and_then(ast::NameRef::cast).unwrap();
|
||||
match classify_name_ref(sema, &name_ref) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue