summaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorMichael Daffin2022-02-25 08:48:20 +0000
committerGitHub2022-02-25 08:48:20 +0000
commit93ec42d06e6c7b8c157fd17a1ed40dda3ee91bf3 (patch)
tree4d1cfb264f16887f99842b7829fb0d7ddfd73ec7 /languages.toml
parenta494f47a5df543a3ab8d6530a5acbc2a5bd04d44 (diff)
Add support for HCL language (#1705)
Queries based on the neovims ones: https://github.com/nvim-treesitter/nvim-treesitter/tree/master/queries/hcl and modified for helix support.
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml9
1 files changed, 9 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index 33906e4b..2ce4cf12 100644
--- a/languages.toml
+++ b/languages.toml
@@ -757,3 +757,12 @@ roots = ["settings.gradle", "settings.gradle.kts"]
comment-token = "//"
indent = { tab-width = 4, unit = " " }
language-server = { command = "kotlin-language-server" }
+
+[[language]]
+name = "hcl"
+scope = "source.hcl"
+injection-regex = "(hcl|tf)"
+file-types = ["hcl", "tf"]
+roots = []
+comment-token = "#"
+indent = { tab-width = 2, unit = " " }