From c2a41ac935ef722131eaa14c3d2fab46fe5483b3 Mon Sep 17 00:00:00 2001 From: Jaakko Paju <36770267+JPaju@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:34:40 +0200 Subject: [PATCH 1/2] Add textobject queries for HCL --- runtime/queries/hcl/textobjects.scm | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 runtime/queries/hcl/textobjects.scm diff --git a/runtime/queries/hcl/textobjects.scm b/runtime/queries/hcl/textobjects.scm new file mode 100644 index 000000000000..1e65058760dd --- /dev/null +++ b/runtime/queries/hcl/textobjects.scm @@ -0,0 +1,6 @@ +(comment) @comment.inside +(comment)+ @comment.around + +(function_arguments + ((_) @parameter.inside . ","? @parameter.around) @parameter.around) + From 09b0951bb07ac4c8aacd39e2fe14a2fdb5b74c50 Mon Sep 17 00:00:00 2001 From: Jaakko Paju <36770267+JPaju@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:41:23 +0200 Subject: [PATCH 2/2] Add to lang-support.md --- book/src/generated/lang-support.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index bfe6d6b1e791..edec26e2e760 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -67,7 +67,7 @@ | hare | ✓ | | | | | haskell | ✓ | ✓ | | `haskell-language-server-wrapper` | | haskell-persistent | ✓ | | | | -| hcl | ✓ | | ✓ | `terraform-ls` | +| hcl | ✓ | ✓ | ✓ | `terraform-ls` | | heex | ✓ | ✓ | | `elixir-ls` | | hocon | ✓ | | ✓ | | | hoon | ✓ | | | |