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 | |
parent | d99b6177c21df836c80cc60a500c73d64a7f9bfd (diff) |
Add textobject queries for vala (#8541)
-rw-r--r-- | book/src/generated/lang-support.md | 2 | ||||
-rw-r--r-- | runtime/queries/vala/textobjects.scm | 27 |
2 files changed, 28 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 97ea8e86..4a0b4b0a 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -190,7 +190,7 @@ | unison | ✓ | | ✓ | | | uxntal | ✓ | | | | | v | ✓ | ✓ | ✓ | `v-analyzer` | -| vala | ✓ | | | `vala-language-server` | +| vala | ✓ | ✓ | | `vala-language-server` | | verilog | ✓ | ✓ | | `svlangserver` | | vhdl | ✓ | | | `vhdl_ls` | | vhs | ✓ | | | | 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 |