summaryrefslogtreecommitdiff
path: root/runtime/queries/vala/textobjects.scm
diff options
context:
space:
mode:
authorJoey Hain2024-03-17 23:11:28 +0000
committerGitHub2024-03-17 23:11:28 +0000
commit476e6baf8f664bb08114aa5bf6bc839925d8d329 (patch)
tree52dd881487d544f60df84b24040c0dd32fa3b712 /runtime/queries/vala/textobjects.scm
parentd99b6177c21df836c80cc60a500c73d64a7f9bfd (diff)
Add textobject queries for vala (#8541)
Diffstat (limited to 'runtime/queries/vala/textobjects.scm')
-rw-r--r--runtime/queries/vala/textobjects.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/runtime/queries/vala/textobjects.scm b/runtime/queries/vala/textobjects.scm
new file mode 100644
index 00000000..b84d9a20
--- /dev/null
+++ b/runtime/queries/vala/textobjects.scm
@@ -0,0 +1,27 @@
+(method_declaration
+ (block) @function.inside) @function.around
+
+(creation_method_declaration
+ (block) @function.inside) @function.around
+
+(method_declaration
+ ((parameter) @parameter.inside . ","? @parameter.around) @parameter.around)
+
+[
+ (class_declaration)
+ (struct_declaration)
+ (interface_declaration)
+] @class.around
+
+(type_arguments
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+
+(creation_method_declaration
+ ((parameter) @parameter.inside . ","? @parameter.around) @parameter.around)
+
+(method_call_expression
+ ((argument) @parameter.inside . ","? @parameter.around) @parameter.around)
+
+(comment) @comment.inside
+
+(comment)+ @comment.around