ngalaiko / tree-sitter-go-template

Golang template grammar for tree-sitter
MIT License
87 stars 29 forks source link

feat(helm): add helm lang to parser.c #15

Closed qvalentin closed 8 months ago

qvalentin commented 9 months ago

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:

:TSInstall yaml
:TSInstall helm
qvalentin commented 9 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