summaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
authorOllie Charles2022-12-10 20:03:18 +0000
committerGitHub2022-12-10 20:03:18 +0000
commit0e8ea13696206aa8ad289d539a5df62f34a73dec (patch)
treebe049d55680febee6de13286b64dc303bd581726 /runtime/queries
parentf323ffabcc5846f647e3ba1d3d2ff5dec95257bd (diff)
Add Haskell text objects (#5061)
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/haskell/textobjects.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/queries/haskell/textobjects.scm b/runtime/queries/haskell/textobjects.scm
new file mode 100644
index 00000000..9870dc4a
--- /dev/null
+++ b/runtime/queries/haskell/textobjects.scm
@@ -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)