aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting/tags.rs
diff options
context:
space:
mode:
authorRoland Ruckerbauer <[email protected]>2020-05-29 20:17:14 +0100
committerRoland Ruckerbauer <[email protected]>2020-05-29 20:17:14 +0100
commit18aa4bcb0328393db0c20de0241e1e9606901144 (patch)
tree668ed1158a6f207ae7895a48b55b1fc8eeaa507c /crates/ra_ide/src/syntax_highlighting/tags.rs
parent30658b25d2bb00ec495e0f3396de772141482081 (diff)
Add semantic highlight to QUESTION token
Made it an operator with controlFlow modifier.
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting/tags.rs')
-rw-r--r--crates/ra_ide/src/syntax_highlighting/tags.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/tags.rs b/crates/ra_ide/src/syntax_highlighting/tags.rs
index 46c718c91..1514531de 100644
--- a/crates/ra_ide/src/syntax_highlighting/tags.rs
+++ b/crates/ra_ide/src/syntax_highlighting/tags.rs
@@ -42,6 +42,7 @@ pub enum HighlightTag {
42 Local, 42 Local,
43 UnresolvedReference, 43 UnresolvedReference,
44 FormatSpecifier, 44 FormatSpecifier,
45 Operator,
45} 46}
46 47
47#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] 48#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
@@ -89,6 +90,7 @@ impl HighlightTag {
89 HighlightTag::Local => "variable", 90 HighlightTag::Local => "variable",
90 HighlightTag::UnresolvedReference => "unresolved_reference", 91 HighlightTag::UnresolvedReference => "unresolved_reference",
91 HighlightTag::FormatSpecifier => "format_specifier", 92 HighlightTag::FormatSpecifier => "format_specifier",
93 HighlightTag::Operator => "operator",
92 } 94 }
93 } 95 }
94} 96}