summaryrefslogtreecommitdiff
path: root/runtime/queries/dhall/textobjects.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/dhall/textobjects.scm')
-rw-r--r--runtime/queries/dhall/textobjects.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/runtime/queries/dhall/textobjects.scm b/runtime/queries/dhall/textobjects.scm
new file mode 100644
index 00000000..c840c758
--- /dev/null
+++ b/runtime/queries/dhall/textobjects.scm
@@ -0,0 +1,23 @@
+(lambda_expression
+ (label) @parameter.inside
+ (expression) @function.inside
+) @function.around
+
+(forall_expression
+ (label) @parameter.inside
+ (expression) @function.inside
+) @function.around
+
+(assert_expression
+ (expression) @test.inside
+) @test.around
+
+[
+ (block_comment_content)
+ (line_comment_content)
+] @comment.inside
+
+[
+ (block_comment)
+ (line_comment)
+] @comment.around