ngalaiko / tree-sitter-go-template

Golang template grammar for tree-sitter
MIT License
74 stars 27 forks source link

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

Closed qvalentin closed 6 months ago

qvalentin commented 7 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 7 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