aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-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