From f49c331f150dbef367930386787d01d263e5296d Mon Sep 17 00:00:00 2001 From: Daniel Banck Date: Wed, 23 Feb 2022 15:08:06 +0100 Subject: [PATCH] change block label type to enum member --- internal/lsp/token_encoder.go | 2 +- internal/lsp/token_types.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/lsp/token_encoder.go b/internal/lsp/token_encoder.go index 6136f7a99..b2ef9085c 100644 --- a/internal/lsp/token_encoder.go +++ b/internal/lsp/token_encoder.go @@ -34,7 +34,7 @@ func (te *TokenEncoder) encodeTokenOfIndex(i int) []uint32 { case lang.TokenBlockType: tokenType = TokenTypeType case lang.TokenBlockLabel: - tokenType = TokenTypeString + tokenType = TokenTypeEnumMember case lang.TokenAttrName: tokenType = TokenTypeProperty case lang.TokenBool: diff --git a/internal/lsp/token_types.go b/internal/lsp/token_types.go index cfb8d4ace..f55410c0f 100644 --- a/internal/lsp/token_types.go +++ b/internal/lsp/token_types.go @@ -109,6 +109,7 @@ var ( TokenTypeNumber, TokenTypeParameter, TokenTypeVariable, + TokenTypeEnumMember, } serverTokenModifiers = TokenModifiers{ TokenModifierDeprecated,