aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rust
diff options
context:
space:
mode:
authorAndrey Tkachenko2022-05-23 12:24:30 +0000
committerBlaž Hrastnik2022-05-25 12:26:06 +0000
commit10463fe32c789f49c65d53c9d22621e415a854ea (patch)
tree610d40f68cc6d314c2a3dba658faf440389728ef /runtime/queries/rust
parentda2952725880d132fdfc2117dedebfe56ffdb646 (diff)
Add `parameter.around` text object query
Diffstat (limited to 'runtime/queries/rust')
-rw-r--r--runtime/queries/rust/textobjects.scm15
1 files changed, 9 insertions, 6 deletions
diff --git a/runtime/queries/rust/textobjects.scm b/runtime/queries/rust/textobjects.scm
index 99b5eb4d..b2769c13 100644
--- a/runtime/queries/rust/textobjects.scm
+++ b/runtime/queries/rust/textobjects.scm
@@ -52,17 +52,20 @@
(impl_item
body: (_) @class.inside)) @class.around
-(parameters
- (_) @parameter.inside)
-
+(parameters
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+
(type_parameters
- (_) @parameter.inside)
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+
+(type_arguments
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(closure_parameters
- (_) @parameter.inside)
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(arguments
- (_) @parameter.inside)
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
[
(line_comment)