Skip to content

Commit

Permalink
Add textobject queries for HCL (helix-editor#9658)
Browse files Browse the repository at this point in the history
* Add textobject queries for HCL

* Add to lang-support.md
  • Loading branch information
jpaju authored and postsolar committed Apr 4, 2024
1 parent 3e88f31 commit 5a82d2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
| hare || | | |
| haskell ||| | `haskell-language-server-wrapper` |
| haskell-persistent || | | |
| hcl || || `terraform-ls` |
| hcl || || `terraform-ls` |
| heex ||| | `elixir-ls` |
| hocon || || |
| hoon || | | |
Expand Down
6 changes: 6 additions & 0 deletions runtime/queries/hcl/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(comment) @comment.inside
(comment)+ @comment.around

(function_arguments
((_) @parameter.inside . ","? @parameter.around) @parameter.around)

0 comments on commit 5a82d2e

Please sign in to comment.