aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting/tags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting/tags.rs')
-rw-r--r--crates/ra_ide/src/syntax_highlighting/tags.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/tags.rs b/crates/ra_ide/src/syntax_highlighting/tags.rs
index 8835a5de2..e8b138e1a 100644
--- a/crates/ra_ide/src/syntax_highlighting/tags.rs
+++ b/crates/ra_ide/src/syntax_highlighting/tags.rs
@@ -44,7 +44,7 @@ pub enum HighlightTag {
44#[repr(u8)] 44#[repr(u8)]
45pub enum HighlightModifier { 45pub enum HighlightModifier {
46 /// Used with keywords like `if` and `break`. 46 /// Used with keywords like `if` and `break`.
47 Control = 0, 47 ControlFlow = 0,
48 /// `foo` in `fn foo(x: i32)` is a definition, `foo` in `foo(90 + 2)` is 48 /// `foo` in `fn foo(x: i32)` is a definition, `foo` in `foo(90 + 2)` is
49 /// not. 49 /// not.
50 Definition, 50 Definition,
@@ -91,7 +91,7 @@ impl fmt::Display for HighlightTag {
91 91
92impl HighlightModifier { 92impl HighlightModifier {
93 const ALL: &'static [HighlightModifier] = &[ 93 const ALL: &'static [HighlightModifier] = &[
94 HighlightModifier::Control, 94 HighlightModifier::ControlFlow,
95 HighlightModifier::Definition, 95 HighlightModifier::Definition,
96 HighlightModifier::Mutable, 96 HighlightModifier::Mutable,
97 HighlightModifier::Unsafe, 97 HighlightModifier::Unsafe,
@@ -99,7 +99,7 @@ impl HighlightModifier {
99 99
100 fn as_str(self) -> &'static str { 100 fn as_str(self) -> &'static str {
101 match self { 101 match self {
102 HighlightModifier::Control => "control", 102 HighlightModifier::ControlFlow => "control",
103 HighlightModifier::Definition => "declaration", 103 HighlightModifier::Definition => "declaration",
104 HighlightModifier::Mutable => "mutable", 104 HighlightModifier::Mutable => "mutable",
105 HighlightModifier::Unsafe => "unsafe", 105 HighlightModifier::Unsafe => "unsafe",