diff options
author | Aleksey Kladov <[email protected]> | 2020-05-24 14:32:31 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-24 14:32:31 +0100 |
commit | ce7144a93d6fe290731cd018da3052d948df4d57 (patch) | |
tree | 82669df97be205b4e93418b3200c7d7c26748705 /crates/ra_ide/src/syntax_highlighting.rs | |
parent | ea3e84f21d4e8c048e091e865c0916fed62f4714 (diff) | |
parent | 47ce5ea581f3fe53a31e166c5feac6c64a8a97e4 (diff) |
Merge pull request #4474 from georgewfraser/color_attrs
Color attribute functions
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs index be57eeb0a..b55cf748d 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs | |||
@@ -361,7 +361,9 @@ fn highlight_element( | |||
361 | } | 361 | } |
362 | 362 | ||
363 | // Highlight references like the definitions they resolve to | 363 | // Highlight references like the definitions they resolve to |
364 | NAME_REF if element.ancestors().any(|it| it.kind() == ATTR) => return None, | 364 | NAME_REF if element.ancestors().any(|it| it.kind() == ATTR) => { |
365 | Highlight::from(HighlightTag::Function) | HighlightModifier::Attribute | ||
366 | } | ||
365 | NAME_REF => { | 367 | NAME_REF => { |
366 | let name_ref = element.into_node().and_then(ast::NameRef::cast).unwrap(); | 368 | let name_ref = element.into_node().and_then(ast::NameRef::cast).unwrap(); |
367 | match classify_name_ref(sema, &name_ref) { | 369 | match classify_name_ref(sema, &name_ref) { |