From 7ebfc3d41008414a6d1698851eea70da77cd455e Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 26 May 2021 15:23:05 +0200 Subject: Document semantic token tags --- crates/rust-analyzer/src/to_proto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/rust-analyzer/src/to_proto.rs') diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index ca9513928..6d18d0ffc 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs @@ -466,7 +466,7 @@ fn semantic_token_type_and_modifiers( HlTag::BoolLiteral => semantic_tokens::BOOLEAN, HlTag::BuiltinType => semantic_tokens::BUILTIN_TYPE, HlTag::ByteLiteral | HlTag::NumericLiteral => lsp_types::SemanticTokenType::NUMBER, - HlTag::CharLiteral => semantic_tokens::CHAR_LITERAL, + HlTag::CharLiteral => semantic_tokens::CHAR, HlTag::Comment => lsp_types::SemanticTokenType::COMMENT, HlTag::EscapeSequence => semantic_tokens::ESCAPE_SEQUENCE, HlTag::FormatSpecifier => semantic_tokens::FORMAT_SPECIFIER, -- cgit v1.2.3