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,