From 887dd2d5bb5dd3fda1da8aa0de7300a78fdebd6b Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 26 May 2021 13:29:00 +0200 Subject: Document semantic token modifiers --- crates/ide/src/syntax_highlighting/tags.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ide/src/syntax_highlighting') diff --git a/crates/ide/src/syntax_highlighting/tags.rs b/crates/ide/src/syntax_highlighting/tags.rs index e94f17cd9..9d481deae 100644 --- a/crates/ide/src/syntax_highlighting/tags.rs +++ b/crates/ide/src/syntax_highlighting/tags.rs @@ -37,6 +37,8 @@ pub enum HlTag { None, } +// Don't forget to adjust the feature description in crates/ide/src/syntax_highlighting.rs. +// And make sure to use the lsp strings used when converting to the protocol in crates\rust-analyzer\src\semantic_tokens.rs, not the names of the variants here. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] #[repr(u8)] pub enum HlMod { -- cgit v1.2.3