aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rust
diff options
context:
space:
mode:
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)