Description
Hi, first of all I appreciate the effort to provide updated & maintained go bindings for tree-sitter.
Previously I was using https://github.com/smacker/go-tree-sitter which I had to fork to get rid of all the included tree-sitter grammars & make major breaking changes to be able to work with it.
My objective is to have good looking syntax highlighting and for this I ported the highlight
crate of the official tree-sitter rust bindings to go. I had major pain points with missing features with the old module which are now gone.
While porting my highlighting code to this module I found 2 things I am wondering about:
-
github.com/smacker/go-tree-sitter
useduint32
in most places which seem to have been replaced withuint
in this module except for: https://github.com/tree-sitter/go-tree-sitter/blob/master/query.go#L113
Is this intended or just an oversight? -
From what I can tell the
Node
struct should be passed around as a pointer. There are 3 places where they are handled as values instead which makes dealing with nodes a little bit annoying in those cases:
Besides this I haven't ran into any issues, thanks for this awesome work!