aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting/tags.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-01-09 11:41:31 +0000
committerAleksey Kladov <[email protected]>2021-01-09 11:41:31 +0000
commit6fb52af521ab8ca2fdd3ea7cfa95eaebd0cba1fc (patch)
tree8d5a1f77e57fb494f47c9092a85d223a9a4346fe /crates/ide/src/syntax_highlighting/tags.rs
parent625ec9e1ae69168f194cbc5bf20846870f03e149 (diff)
Rename dummy -> none
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tags.rs')
-rw-r--r--crates/ide/src/syntax_highlighting/tags.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ide/src/syntax_highlighting/tags.rs b/crates/ide/src/syntax_highlighting/tags.rs
index a0286b72d..07c788b50 100644
--- a/crates/ide/src/syntax_highlighting/tags.rs
+++ b/crates/ide/src/syntax_highlighting/tags.rs
@@ -33,8 +33,8 @@ pub enum HighlightTag {
33 Operator, 33 Operator,
34 UnresolvedReference, 34 UnresolvedReference,
35 35
36 // For things which don't have proper Tag, but want to use modifiers. 36 // For things which don't have a specific highlight.
37 Dummy, 37 None,
38} 38}
39 39
40#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] 40#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
@@ -100,7 +100,7 @@ impl HighlightTag {
100 HighlightTag::Operator => "operator", 100 HighlightTag::Operator => "operator",
101 HighlightTag::StringLiteral => "string_literal", 101 HighlightTag::StringLiteral => "string_literal",
102 HighlightTag::UnresolvedReference => "unresolved_reference", 102 HighlightTag::UnresolvedReference => "unresolved_reference",
103 HighlightTag::Dummy => "dummy", 103 HighlightTag::None => "none",
104 } 104 }
105 } 105 }
106} 106}
@@ -174,7 +174,7 @@ impl Highlight {
174 Highlight { tag, modifiers: HighlightModifiers::default() } 174 Highlight { tag, modifiers: HighlightModifiers::default() }
175 } 175 }
176 pub fn is_empty(&self) -> bool { 176 pub fn is_empty(&self) -> bool {
177 self.tag == HighlightTag::Dummy && self.modifiers == HighlightModifiers::default() 177 self.tag == HighlightTag::None && self.modifiers == HighlightModifiers::default()
178 } 178 }
179} 179}
180 180