tree-sitter-grammars / tree-sitter-hcl

HCL grammar for tree-sitter
https://tree-sitter-grammars.github.io/tree-sitter-hcl/
Apache License 2.0
92 stars 20 forks source link

feat: add Fabric dialect #54

Open valpackett opened 1 month ago

valpackett commented 1 month ago

Fabric is a tool for generating documents from HCL templates. Like Terraform, it has specific syntax highlighting additions. I'm currently working on custom tree-sitter queries for it (mostly a whole bunch of injections – jq, gotmpl, html, css…). Would be great if we could merge the dialect into the main tree-sitter-hcl repo!

MichaHoffmann commented 1 month ago

This is for nvim-treesitter, right? Or is there another usecase for dialects?

valpackett commented 1 month ago

Right, at least nvim and helix need distinctly named grammars to be able to use distinct sets of queries, probably most other text editors too.

traut commented 2 weeks ago

the changes are also forked into https://github.com/blackstork-io/tree-sitter-fabric/tree/push-sltlwnxkpnyk