Skip to content

Commit

Permalink
Add Haskell text objects (helix-editor#5061)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocharles authored and Frederik Vestre committed Feb 6, 2023
1 parent 7c768a6 commit 2f9afa0
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 @@ -51,7 +51,7 @@
| gowork || | | `gopls` |
| graphql || | | |
| hare || | | |
| haskell || | | `haskell-language-server-wrapper` |
| haskell || | | `haskell-language-server-wrapper` |
| hcl || || `terraform-ls` |
| heex ||| | `elixir-ls` |
| html || | | `vscode-html-language-server` |
Expand Down
13 changes: 13 additions & 0 deletions runtime/queries/haskell/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(comment) @comment.inside

[
(adt)
(decl_type)
(newtype)
] @class.around

((signature)? (function rhs:(_) @function.inside)) @function.around
(exp_lambda) @function.around

(adt (type_variable) @parameter.inside)
(patterns (_) @parameter.inside)

0 comments on commit 2f9afa0

Please sign in to comment.