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 (union_specifier
body: (_) @class.inside) @class.around 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 (comment) @comment.inside

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

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

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

@ -53,16 +53,19 @@
body: (_) @class.inside)) @class.around body: (_) @class.inside)) @class.around
(parameters (parameters
(_) @parameter.inside) ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(type_parameters (type_parameters
(_) @parameter.inside) ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(type_arguments
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(closure_parameters (closure_parameters
(_) @parameter.inside) ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(arguments (arguments
(_) @parameter.inside) ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
[ [
(line_comment) (line_comment)

Loading…
Cancel
Save