aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/dhall/textobjects.scm
diff options
context:
space:
mode:
authorClément Delafargue2023-01-13 10:29:40 +0000
committerMichael Davis2023-01-13 15:42:05 +0000
commit1f6809c9ce8f4b864b3754111b8673ca282f67f5 (patch)
tree9b50311cee66daf3d413ac0b42bef6b600544aa8 /runtime/queries/dhall/textobjects.scm
parent051cd786a43a84912413b526782adffa9698fcd9 (diff)
Language support for dhall
https://dhall-lang.org/
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