diff options
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting/tags.rs')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/tags.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/tags.rs b/crates/ra_ide/src/syntax_highlighting/tags.rs index 94f466966..93bbb4b4d 100644 --- a/crates/ra_ide/src/syntax_highlighting/tags.rs +++ b/crates/ra_ide/src/syntax_highlighting/tags.rs | |||
@@ -23,6 +23,7 @@ pub enum HighlightTag { | |||
23 | Constant, | 23 | Constant, |
24 | Enum, | 24 | Enum, |
25 | EnumVariant, | 25 | EnumVariant, |
26 | EscapeSequence, | ||
26 | Field, | 27 | Field, |
27 | FormatSpecifier, | 28 | FormatSpecifier, |
28 | Function, | 29 | Function, |
@@ -55,6 +56,7 @@ pub enum HighlightModifier { | |||
55 | /// `foo` in `fn foo(x: i32)` is a definition, `foo` in `foo(90 + 2)` is | 56 | /// `foo` in `fn foo(x: i32)` is a definition, `foo` in `foo(90 + 2)` is |
56 | /// not. | 57 | /// not. |
57 | Definition, | 58 | Definition, |
59 | Documentation, | ||
58 | Mutable, | 60 | Mutable, |
59 | Unsafe, | 61 | Unsafe, |
60 | } | 62 | } |
@@ -71,6 +73,7 @@ impl HighlightTag { | |||
71 | HighlightTag::Constant => "constant", | 73 | HighlightTag::Constant => "constant", |
72 | HighlightTag::Enum => "enum", | 74 | HighlightTag::Enum => "enum", |
73 | HighlightTag::EnumVariant => "enum_variant", | 75 | HighlightTag::EnumVariant => "enum_variant", |
76 | HighlightTag::EscapeSequence => "escape_sequence", | ||
74 | HighlightTag::Field => "field", | 77 | HighlightTag::Field => "field", |
75 | HighlightTag::FormatSpecifier => "format_specifier", | 78 | HighlightTag::FormatSpecifier => "format_specifier", |
76 | HighlightTag::Function => "function", | 79 | HighlightTag::Function => "function", |
@@ -106,6 +109,7 @@ impl HighlightModifier { | |||
106 | HighlightModifier::Attribute, | 109 | HighlightModifier::Attribute, |
107 | HighlightModifier::ControlFlow, | 110 | HighlightModifier::ControlFlow, |
108 | HighlightModifier::Definition, | 111 | HighlightModifier::Definition, |
112 | HighlightModifier::Documentation, | ||
109 | HighlightModifier::Mutable, | 113 | HighlightModifier::Mutable, |
110 | HighlightModifier::Unsafe, | 114 | HighlightModifier::Unsafe, |
111 | ]; | 115 | ]; |
@@ -115,6 +119,7 @@ impl HighlightModifier { | |||
115 | HighlightModifier::Attribute => "attribute", | 119 | HighlightModifier::Attribute => "attribute", |
116 | HighlightModifier::ControlFlow => "control", | 120 | HighlightModifier::ControlFlow => "control", |
117 | HighlightModifier::Definition => "declaration", | 121 | HighlightModifier::Definition => "declaration", |
122 | HighlightModifier::Documentation => "documentation", | ||
118 | HighlightModifier::Mutable => "mutable", | 123 | HighlightModifier::Mutable => "mutable", |
119 | HighlightModifier::Unsafe => "unsafe", | 124 | HighlightModifier::Unsafe => "unsafe", |
120 | } | 125 | } |