Skip to content

Commit

Permalink
change block label type to enum member
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Feb 23, 2022
1 parent 81705b2 commit f49c331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lsp/token_encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions internal/lsp/token_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ var (
TokenTypeNumber,
TokenTypeParameter,
TokenTypeVariable,
TokenTypeEnumMember,
}
serverTokenModifiers = TokenModifiers{
TokenModifierDeprecated,
Expand Down

0 comments on commit f49c331

Please sign in to comment.