diff options
author | Aleksey Kladov <[email protected]> | 2021-01-09 11:44:01 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-01-09 11:44:01 +0000 |
commit | 64a6ee45351a71cdeb1d1dddc8fc746abdcff07b (patch) | |
tree | 1bcbd575286076950bf71719f8944e2d4322f939 /crates/ide/src/syntax_highlighting/macro_rules.rs | |
parent | 6fb52af521ab8ca2fdd3ea7cfa95eaebd0cba1fc (diff) |
Shorten frequent names
Diffstat (limited to 'crates/ide/src/syntax_highlighting/macro_rules.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting/macro_rules.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide/src/syntax_highlighting/macro_rules.rs b/crates/ide/src/syntax_highlighting/macro_rules.rs index 4462af47e..71dd1ccc5 100644 --- a/crates/ide/src/syntax_highlighting/macro_rules.rs +++ b/crates/ide/src/syntax_highlighting/macro_rules.rs | |||
@@ -1,7 +1,7 @@ | |||
1 | //! Syntax highlighting for macro_rules!. | 1 | //! Syntax highlighting for macro_rules!. |
2 | use syntax::{SyntaxElement, SyntaxKind, SyntaxToken, TextRange, T}; | 2 | use syntax::{SyntaxElement, SyntaxKind, SyntaxToken, TextRange, T}; |
3 | 3 | ||
4 | use crate::{HighlightTag, HighlightedRange}; | 4 | use crate::{HighlightedRange, HlTag}; |
5 | 5 | ||
6 | #[derive(Default)] | 6 | #[derive(Default)] |
7 | pub(super) struct MacroRulesHighlighter { | 7 | pub(super) struct MacroRulesHighlighter { |
@@ -25,7 +25,7 @@ impl MacroRulesHighlighter { | |||
25 | if let Some(range) = is_metavariable(element) { | 25 | if let Some(range) = is_metavariable(element) { |
26 | return Some(HighlightedRange { | 26 | return Some(HighlightedRange { |
27 | range, | 27 | range, |
28 | highlight: HighlightTag::UnresolvedReference.into(), | 28 | highlight: HlTag::UnresolvedReference.into(), |
29 | binding_hash: None, | 29 | binding_hash: None, |
30 | }); | 30 | }); |
31 | } | 31 | } |