16

GitHub - mitchellh/tree-sitter-hcl: A tree-sitter grammar for HCL (HashiCorp Con...

 2 years ago
source link: https://github.com/mitchellh/tree-sitter-hcl
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

tree-sitter-hcl

tree-sitter grammar for HCL (HashiCorp Configuration Language) files. HCL is the configuration format used by projects such as Terraform, Vault, Waypoint, Nomad, etc.

Status

Important: This is not an officially supported HashiCorp project. I am one of the founders of HashiCorp, but I built this in my personal free time and there are no dedicated resources (people or otherwise) from the company on this project.

The grammar parses most HCL files I've thrown at it. It doesn't handle interpolations yet (in strings or heredocs) and instead treats the full string as just a string. This is the biggest feature missing at the moment. Regardless, I am using this day to day for general HCL highlighting.

Screenshot

The screenshot shows a Terraform example syntax highlighted.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK