aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMichael Hoffmann <mhoffm@posteo.de>2022-12-02 23:47:19 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-12-29 22:18:41 +0100
commitee3e9f4dc0e5ee9e2bfb1ee47638375840b8fe0f (patch)
treef638bb4493056146317796d894464801b805118b /lua
parentUpdate parsers: astro, ocaml, ocaml_interface (diff)
downloadnvim-treesitter-ee3e9f4dc0e5ee9e2bfb1ee47638375840b8fe0f.tar
nvim-treesitter-ee3e9f4dc0e5ee9e2bfb1ee47638375840b8fe0f.tar.gz
nvim-treesitter-ee3e9f4dc0e5ee9e2bfb1ee47638375840b8fe0f.tar.bz2
nvim-treesitter-ee3e9f4dc0e5ee9e2bfb1ee47638375840b8fe0f.tar.lz
nvim-treesitter-ee3e9f4dc0e5ee9e2bfb1ee47638375840b8fe0f.tar.xz
nvim-treesitter-ee3e9f4dc0e5ee9e2bfb1ee47638375840b8fe0f.tar.zst
nvim-treesitter-ee3e9f4dc0e5ee9e2bfb1ee47638375840b8fe0f.zip
feat(hcl,terraform): split terraform from hcl, add specialized queries for tf
This enables us to have different queries for terraform and general hcl. It solve the situation where other dialects of hcl (nomad, packer, etc) might use a terraform keyword and get highlighted out of place.
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/parsers.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index f4e13974b..6bd94f93b 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -8,7 +8,6 @@ local filetype_to_parsername = {
PKGBUILD = "bash",
html_tags = "html",
["typescript.tsx"] = "tsx",
- terraform = "hcl",
["html.handlebars"] = "glimmer",
systemverilog = "verilog",
cls = "latex",
@@ -618,6 +617,17 @@ list.hcl = {
filetype = "hcl",
}
+list.terraform = {
+ install_info = {
+ url = "https://github.com/MichaHoffmann/tree-sitter-hcl",
+ files = { "src/parser.c", "src/scanner.cc" },
+ branch = "main",
+ location = "dialects/terraform",
+ },
+ maintainers = { "@MichaHoffmann" },
+ filetype = "terraform",
+}
+
list.markdown = {
install_info = {
url = "https://github.com/MDeiml/tree-sitter-markdown",