Add Haskell text objects (#5061)
This commit is contained in:
parent
f323ffabcc
commit
0e8ea13696
@ -51,7 +51,7 @@
|
|||||||
| gowork | ✓ | | | `gopls` |
|
| gowork | ✓ | | | `gopls` |
|
||||||
| graphql | ✓ | | | |
|
| graphql | ✓ | | | |
|
||||||
| hare | ✓ | | | |
|
| hare | ✓ | | | |
|
||||||
| haskell | ✓ | | | `haskell-language-server-wrapper` |
|
| haskell | ✓ | ✓ | | `haskell-language-server-wrapper` |
|
||||||
| hcl | ✓ | | ✓ | `terraform-ls` |
|
| hcl | ✓ | | ✓ | `terraform-ls` |
|
||||||
| heex | ✓ | ✓ | | `elixir-ls` |
|
| heex | ✓ | ✓ | | `elixir-ls` |
|
||||||
| html | ✓ | | | `vscode-html-language-server` |
|
| html | ✓ | | | `vscode-html-language-server` |
|
||||||
|
13
runtime/queries/haskell/textobjects.scm
Normal file
13
runtime/queries/haskell/textobjects.scm
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user