Closed qvalentin closed 8 months ago
As discussed in https://github.com/nvim-treesitter/nvim-treesitter/pull/6050: An other option would be to do it with java-script and create two separate parser.c files. We could copy this from https://github.com/MichaHoffmann/tree-sitter-hcl/blob/main/dialects/terraform/grammar.js
This way the same parser.c file can be used for both helm and gotmpl in neovim.
If this is an acceptable solution we can automate it in the package.json and maybe also add tests.
You can already test it with https://github.com/nvim-treesitter/nvim-treesitter/pull/6050. If using this version of nvim-treesitter all you need to do is: