Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #13099 - jonas-schievink:add-decorator-token, r=jonas-schievink
fix: Register decorator token type to avoid panic Followup to https://github.com/rust-lang/rust-analyzer/pull/13084
bors 2022-08-23
parent 27e17ff · parent 5804412 · commit 8dcf4c7
-rw-r--r--crates/rust-analyzer/src/semantic_tokens.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/semantic_tokens.rs b/crates/rust-analyzer/src/semantic_tokens.rs
index b3f5493bf2..4493da19c1 100644
--- a/crates/rust-analyzer/src/semantic_tokens.rs
+++ b/crates/rust-analyzer/src/semantic_tokens.rs
@@ -32,6 +32,7 @@ macro_rules! define_semantic_token_types {
SemanticTokenType::TYPE_PARAMETER,
SemanticTokenType::TYPE,
SemanticTokenType::VARIABLE,
+ SemanticTokenType::DECORATOR,
$($ident),*
];
};