Skip to content

Commit

Permalink
Add textobject queries for Hare
Browse files Browse the repository at this point in the history
  • Loading branch information
omasanori committed Jul 16, 2024
1 parent 22a0514 commit a476549
Show file tree
Hide file tree
Showing 2 changed files with 14 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 @@ -76,7 +76,7 @@
| graphql ||| | `graphql-lsp` |
| groovy || | | |
| gts |||| `typescript-language-server`, `vscode-eslint-language-server`, `ember-language-server` |
| hare || | | |
| hare || | | |
| haskell ||| | `haskell-language-server-wrapper` |
| haskell-persistent || | | |
| hcl |||| `terraform-ls` |
Expand Down
13 changes: 13 additions & 0 deletions runtime/queries/hare/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(function_declaration
body: (_) @function.inside) @function.around

(struct_union_type
"{" @class.inside (_) @class.inside "}" @class.inside) @class.around

(enum_type
"{" @class.inside (_) @class.inside "}" @class.inside) @class.around

; TODO: Implement parameter

(comment) @comment.inside
(comment)+ @comment.around

0 comments on commit a476549

Please sign in to comment.