afnanenayet / diffsitter

A tree-sitter based AST difftool to get meaningful semantic diffs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hashicorp Config Language (HCL) support

mike-sol opened this issue · comments

This project is super useful and I am trying to work it into my workflow.

I live in HCL, the language of Terraform, a lot of the time, and it would be awesome to be able to compare HCL changes with this AST-aware method.

I'm aware the tree-sitter project does not presently support HCL. Should I push an issue up there, and link it here, or something like that?

Yeah I think that's the move - diffsitter fully relies on tree-sitter to generate ASTs

In that issue @maxbrunsfeld pointed out the existence of https://github.com/mitchellh/tree-sitter-hcl
Is that something that could be rolled in here?

Yep! Seems like a standard tree-sitter grammar