Highlight true and false as literals

This commit is contained in:
Matthew Jasper
2020-05-21 17:40:52 +01:00
parent 7e862626cc
commit e2d36cb692
10 changed files with 14 additions and 1 deletions

View File

@@ -295,6 +295,7 @@ fn semantic_token_type_and_modifiers(
HighlightTag::ByteLiteral | HighlightTag::NumericLiteral => {
lsp_types::SemanticTokenType::NUMBER
}
HighlightTag::BoolLiteral => semantic_tokens::BOOLEAN,
HighlightTag::CharLiteral | HighlightTag::StringLiteral => {
lsp_types::SemanticTokenType::STRING
}