on master help sign in
Add Haskell text objects (#5061)
commit0e8ea13696206aa8ad289d539a5df62f34a73dec authorOllie Charles <ollie@ocharles.org.uk> dateSat 10 Dec 2022, 20:03 (4 years ago) parentf323ffa
2 files changed+14−1
book/src/generated/lang-support.md+1−1 runtime/queries/haskell/textobjects.scm+13
book/src/generated/lang-support.md+1−1
@@ -51,7 +51,7 @@
5151| gowork | ✓ | | | `gopls` |
5252| graphql | ✓ | | | |
5353| hare | ✓ | | | |
54−| haskell | ✓ | | | `haskell-language-server-wrapper` |
54+| haskell | ✓ | ✓ | | `haskell-language-server-wrapper` |
5555| hcl | ✓ | | ✓ | `terraform-ls` |
5656| heex | ✓ | ✓ | | `elixir-ls` |
5757| html | ✓ | | | `vscode-html-language-server` |
runtime/queries/haskell/textobjects.scmnew file+13
@@ -0,0 +1,13 @@
1+(comment) @comment.inside
2+
3+[
4+ (adt)
5+ (decl_type)
6+ (newtype)
7+] @class.around
8+
9+((signature)? (function rhs:(_) @function.inside)) @function.around
10+(exp_lambda) @function.around
11+
12+(adt (type_variable) @parameter.inside)
13+(patterns (_) @parameter.inside)