Add `parameter.around` text object query

pull/2556/head
Andrey Tkachenko 3 years ago committed by Blaž Hrastnik
parent da29527258
commit 10463fe32c

@ -10,7 +10,11 @@
(union_specifier
body: (_) @class.inside) @class.around
(parameter_declaration) @parameter.inside
(parameter_list
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(argument_list
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(comment) @comment.inside

@ -14,11 +14,14 @@
(type_declaration
(type_spec (type_identifier) (interface_type (method_spec)+ @class.inside))) @class.around
(type_parameter_list
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(parameter_list
(_) @parameter.inside)
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(argument_list
(_) @parameter.inside)
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(comment) @comment.inside

@ -22,12 +22,18 @@
(anonymous_function_creation_expression
body: (_) @function.inside) @function.around
(anonymous_function_use_clause
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(formal_parameters
[
([
(simple_parameter)
(variadic_parameter)
(property_promotion_parameter)
] @parameter.inside)
] @parameter.inside . ","? @parameter.around) @parameter.around)
(arguments
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(comment) @comment.inside

@ -5,13 +5,13 @@
body: (block)? @class.inside) @class.around
(parameters
(_) @parameter.inside)
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(lambda_parameters
(_) @parameter.inside)
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(argument_list
(_) @parameter.inside)
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(comment) @comment.inside

@ -53,16 +53,19 @@
body: (_) @class.inside)) @class.around
(parameters
(_) @parameter.inside)
((_) @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)

Loading…
Cancel
Save