gno grammar for tree-sitter
Gno is essentially identical to Go's syntax, but some syntax such as generic
, channel
and go
are not supported. Therefore, the grammar rules have been written and generated to fit these characteristics.
However, we believe that these syntax elements will be fully implemented eventually, so they have been commented out for now. Once they start being supported, you can simply remove the comments from thos parts and regenerate the grammar with the following command
tree-sitter generate
For project setup, please refer to the setup section of tree-sitter's official documentation.