diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ide/src/syntax_highlighting/tags.rs | 3 | ||||
-rw-r--r-- | crates/rust-analyzer/src/semantic_tokens.rs | 1 | ||||
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tags.rs b/crates/ide/src/syntax_highlighting/tags.rs index 49ec94bdc..c1b817f06 100644 --- a/crates/ide/src/syntax_highlighting/tags.rs +++ b/crates/ide/src/syntax_highlighting/tags.rs | |||
@@ -62,6 +62,7 @@ pub enum HighlightModifier { | |||
62 | Documentation, | 62 | Documentation, |
63 | Injected, | 63 | Injected, |
64 | Mutable, | 64 | Mutable, |
65 | Consuming, | ||
65 | Unsafe, | 66 | Unsafe, |
66 | } | 67 | } |
67 | 68 | ||
@@ -119,6 +120,7 @@ impl HighlightModifier { | |||
119 | HighlightModifier::Documentation, | 120 | HighlightModifier::Documentation, |
120 | HighlightModifier::Injected, | 121 | HighlightModifier::Injected, |
121 | HighlightModifier::Mutable, | 122 | HighlightModifier::Mutable, |
123 | HighlightModifier::Consuming, | ||
122 | HighlightModifier::Unsafe, | 124 | HighlightModifier::Unsafe, |
123 | ]; | 125 | ]; |
124 | 126 | ||
@@ -130,6 +132,7 @@ impl HighlightModifier { | |||
130 | HighlightModifier::Documentation => "documentation", | 132 | HighlightModifier::Documentation => "documentation", |
131 | HighlightModifier::Injected => "injected", | 133 | HighlightModifier::Injected => "injected", |
132 | HighlightModifier::Mutable => "mutable", | 134 | HighlightModifier::Mutable => "mutable", |
135 | HighlightModifier::Consuming => "consuming", | ||
133 | HighlightModifier::Unsafe => "unsafe", | 136 | HighlightModifier::Unsafe => "unsafe", |
134 | } | 137 | } |
135 | } | 138 | } |
diff --git a/crates/rust-analyzer/src/semantic_tokens.rs b/crates/rust-analyzer/src/semantic_tokens.rs index afc38fb4e..9db7b8af5 100644 --- a/crates/rust-analyzer/src/semantic_tokens.rs +++ b/crates/rust-analyzer/src/semantic_tokens.rs | |||
@@ -75,6 +75,7 @@ define_semantic_token_modifiers![ | |||
75 | (CONTROL_FLOW, "controlFlow"), | 75 | (CONTROL_FLOW, "controlFlow"), |
76 | (INJECTED, "injected"), | 76 | (INJECTED, "injected"), |
77 | (MUTABLE, "mutable"), | 77 | (MUTABLE, "mutable"), |
78 | (CONSUMING, "consuming"), | ||
78 | (UNSAFE, "unsafe"), | 79 | (UNSAFE, "unsafe"), |
79 | (ATTRIBUTE_MODIFIER, "attribute"), | 80 | (ATTRIBUTE_MODIFIER, "attribute"), |
80 | ]; | 81 | ]; |
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 8a2cfa2ae..44c006e4c 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -400,6 +400,7 @@ fn semantic_token_type_and_modifiers( | |||
400 | HighlightModifier::Injected => semantic_tokens::INJECTED, | 400 | HighlightModifier::Injected => semantic_tokens::INJECTED, |
401 | HighlightModifier::ControlFlow => semantic_tokens::CONTROL_FLOW, | 401 | HighlightModifier::ControlFlow => semantic_tokens::CONTROL_FLOW, |
402 | HighlightModifier::Mutable => semantic_tokens::MUTABLE, | 402 | HighlightModifier::Mutable => semantic_tokens::MUTABLE, |
403 | HighlightModifier::Consuming => semantic_tokens::CONSUMING, | ||
403 | HighlightModifier::Unsafe => semantic_tokens::UNSAFE, | 404 | HighlightModifier::Unsafe => semantic_tokens::UNSAFE, |
404 | }; | 405 | }; |
405 | mods |= modifier; | 406 | mods |= modifier; |