aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rust
diff options
context:
space:
mode:
authorVivek Kethineni2024-02-17 16:08:44 +0000
committerGitHub2024-02-17 16:08:44 +0000
commit3e963b3c1b5eb4b5cd7f33b8ef6d6642de210a9b (patch)
tree1ca3a3717e02ba5f00b29fb345d854d27a2e9739 /runtime/queries/rust
parent6ffe09e873821c7232d1da23ea4642214e42a1e7 (diff)
Add Rust fields as argument textobject (#9637)
* added field_declaration_list and field_initializer_list as parameter textobjects * removed field_declaration_listt from textobjects.scm
Diffstat (limited to 'runtime/queries/rust')
-rw-r--r--runtime/queries/rust/textobjects.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/queries/rust/textobjects.scm b/runtime/queries/rust/textobjects.scm
index 837f981e..df26331d 100644
--- a/runtime/queries/rust/textobjects.scm
+++ b/runtime/queries/rust/textobjects.scm
@@ -34,6 +34,9 @@
(arguments
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+(field_initializer_list
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+
[
(line_comment)
(block_comment)