Open Mizzlr opened 4 years ago
Hi, Thank you for this! I'll merge the change and see if it works with new tree-sitter. The critical thing to check is the layout of Subtree struct. I'll drop a note once I'll do this. I would refrain from adding grammars to CMakeLists. The go grammar is added only for testing purposes. Grammars to be used in production should be compiled or downloaded separately and loaded dynamically from shared libs.
I was wondering if there has been work done on this already elsewhere 🤔
Note, that latest available Tree-Sitter version is 0.20 now, with some breaking changes: https://github.com/tree-sitter/tree-sitter/releases/tag/v0.20.0
As of this date, tree-sitter and tree-sitter- projects have moved to 0.16.0.
One of the changes we will need to do is
This just made it compile and work. But not sure if it is fully correct.
Also probably expand to other languages as well with CMakeLists.txt
I have a working copy of this with ts version 0.16.0 with all the languages in my own fork.