Document semantic token tags

This commit is contained in:
Lukas Wirth
2021-05-26 15:23:05 +02:00
parent 5a1fd05760
commit 7ebfc3d410
3 changed files with 76 additions and 6 deletions

View File

@@ -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,