tree-sitter / tree-sitter-go

Go grammar for tree-sitter
MIT License
310 stars 65 forks source link

Comments not behaving well with generics #81

Closed rlch closed 2 years ago

rlch commented 2 years ago

Hey, I've encountered a weird issue where highlighting breaks if a comment appears below a type instantiation.

Sorry for the plethora of images, but hopefully this gives you enough information to resolve this edge-case: image image image image

rlch commented 2 years ago

Seems like this is a much broader issue than I initially outlined. Basically any case of type instantiation causes errors in tree-sitter.