All Projects → mitchellh → tree-sitter-hcl

mitchellh / tree-sitter-hcl

Licence: MIT license
A tree-sitter grammar for HCL (HashiCorp Configuration Language), used by projects such as Terraform.

Programming Languages

c
50402 projects - #5 most used programming language
javascript
184084 projects - #8 most used programming language
C++
36643 projects - #6 most used programming language
rust
11053 projects
Nix
1067 projects
scheme
763 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to tree-sitter-hcl

tree-sitter-kotlin
Kotlin grammar for Tree-Sitter
Stars: ✭ 35 (-46.15%)
Mutual labels:  tree-sitter
haskell-tree-sitter
Haskell bindings for tree-sitter
Stars: ✭ 123 (+89.23%)
Mutual labels:  tree-sitter
reason-tree-sitter
ReasonML bindings for tree-sitter
Stars: ✭ 22 (-66.15%)
Mutual labels:  tree-sitter
Tree Sitter
An incremental parsing system for programming tools
Stars: ✭ 7,083 (+10796.92%)
Mutual labels:  tree-sitter
tree-sitter.el
An Emacs dynamic module exposing tree-sitter.
Stars: ✭ 59 (-9.23%)
Mutual labels:  tree-sitter
tree-sitter-cli
CLI tool for creating and testing tree-sitter parsers
Stars: ✭ 43 (-33.85%)
Mutual labels:  tree-sitter
spellsitter.nvim
Treesitter powered spellchecker
Stars: ✭ 251 (+286.15%)
Mutual labels:  tree-sitter
ltreesitter
Standalone tree sitter bindings for the Lua language
Stars: ✭ 62 (-4.62%)
Mutual labels:  tree-sitter
tree-sitter-rust
Rust grammar for tree-sitter
Stars: ✭ 199 (+206.15%)
Mutual labels:  tree-sitter
wildq
Command-line TOML/JSON/INI/YAML/XML/HCL processor using jq c bindings
Stars: ✭ 22 (-66.15%)
Mutual labels:  hcl
tree-sitter-php
PHP grammar for tree-sitter
Stars: ✭ 83 (+27.69%)
Mutual labels:  tree-sitter
terraform-aws-labels
This terraform module is designed to generate consistent label names and tags for resources. You can use terraform-labels to implement a strict naming convention.
Stars: ✭ 32 (-50.77%)
Mutual labels:  hcl
swift-tree-sitter
Swift bindings for the tree-sitter parsing library
Stars: ✭ 29 (-55.38%)
Mutual labels:  tree-sitter
difftastic
a syntax-aware diff 🟥🟩
Stars: ✭ 1,701 (+2516.92%)
Mutual labels:  tree-sitter
dropship
Super simple deployment tool
Stars: ✭ 62 (-4.62%)
Mutual labels:  hcl
tree-sitter-yaml
YAML grammar for tree-sitter
Stars: ✭ 29 (-55.38%)
Mutual labels:  tree-sitter
hcl
Parsing, encoding and decoding of HCL to and from Go types and an AST.
Stars: ✭ 38 (-41.54%)
Mutual labels:  hcl
terraform-aws-waf-webacl-supporting-resources
A module to create several resources needed by AWS WAF WebACL.
Stars: ✭ 25 (-61.54%)
Mutual labels:  hcl
tree-sitter-lua
Lua grammar for tree-sitter.
Stars: ✭ 40 (-38.46%)
Mutual labels:  tree-sitter
terraform-aws-ecr
This terraform module is used to create ECR on AWS.
Stars: ✭ 20 (-69.23%)
Mutual labels:  hcl

tree-sitter-hcl

Update: check out this more full-featured tree-sitter-hcl plugin here: https://github.com/MichaHoffmann/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.

Screenshot

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].