Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/koto/textobjects.scm')
-rw-r--r--runtime/queries/koto/textobjects.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/runtime/queries/koto/textobjects.scm b/runtime/queries/koto/textobjects.scm
new file mode 100644
index 00000000..15455689
--- /dev/null
+++ b/runtime/queries/koto/textobjects.scm
@@ -0,0 +1,38 @@
+(comment) @comment.inside
+
+(comment)+ @comment.around
+
+(function
+ body: (_) @function.inside) @function.around
+
+(args
+ ((arg) @parameter.inside . ","? @parameter.around) @parameter.around)
+
+(call_args
+ ((call_arg) @parameter.inside . ","? @parameter.around) @parameter.around)
+
+(chain
+ call: (tuple
+ ((element) @parameter.inside . ","? @parameter.around) @parameter.around))
+
+(map
+ ((entry_inline) @entry.inside . ","? @entry.around) @entry.around)
+
+(map_block
+ ((entry_block) @entry.inside) @entry.around)
+
+(list
+ ((element) @entry.inside . ","? @entry.around) @entry.around)
+
+(tuple
+ (_) @entry.around)
+
+(assign
+ (meta (test))
+ (function body: (_) @test.inside)
+) @test.around
+
+(entry_block
+ key: (meta (test))
+ value: (function body: (_) @test.inside)
+) @test.around