tree-sitter-go icon indicating copy to clipboard operation
tree-sitter-go copied to clipboard

"any" type highlight

Open vcraescu opened this issue 2 years ago • 2 comments

I don't know if there is a problem with Neovim or with the tree-sitter but apparently, the any type is incorrectly highlighted.

image

In TSPlayground it looks like the TSTypeBuiltin highlight is applied but for some reason, TSType highlight is used.

image

vcraescu avatar Jul 09 '22 14:07 vcraescu

I think any and comparable should be highlighted, they are new predeclared identifiers since go1.18, release note:

The new predeclared identifier any is an alias for the empty interface. It may be used instead of interface{}. The new predeclared identifier comparable is an interface that denotes the set of all types which can be compared using == or !=. It may only be used as (or embedded in) a type constraint.

fioncat avatar Jul 25 '22 09:07 fioncat

yeah

vcraescu avatar Jul 25 '22 09:07 vcraescu