summaryrefslogtreecommitdiff
path: root/runtime/queries/kdl/textobjects.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/kdl/textobjects.scm')
-rw-r--r--runtime/queries/kdl/textobjects.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/runtime/queries/kdl/textobjects.scm b/runtime/queries/kdl/textobjects.scm
new file mode 100644
index 00000000..7f9a562c
--- /dev/null
+++ b/runtime/queries/kdl/textobjects.scm
@@ -0,0 +1,27 @@
+(type (_) @test.inside) @test.around
+
+(node
+ children: (node_children)? @class.inside) @class.around
+
+(node
+ children: (node_children)? @function.inside) @function.around
+
+(node (identifier) @function.movement)
+
+[
+ (single_line_comment)
+ (multi_line_comment)
+] @comment.inside
+
+[
+ (single_line_comment)+
+ (multi_line_comment)+
+] @comment.around
+
+[
+ (prop)
+ (value)
+] @parameter.inside
+
+(value (type) ? (_) @parameter.inside @parameter.movement . ) @parameter.around
+