diff options
author | Joey Hain | 2024-03-17 23:11:28 +0000 |
---|---|---|
committer | GitHub | 2024-03-17 23:11:28 +0000 |
commit | 476e6baf8f664bb08114aa5bf6bc839925d8d329 (patch) | |
tree | 52dd881487d544f60df84b24040c0dd32fa3b712 /runtime | |
parent | d99b6177c21df836c80cc60a500c73d64a7f9bfd (diff) |
Add textobject queries for vala (#8541)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/vala/textobjects.scm | 27 |
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 |