mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
Add parameter.around
text object query
This commit is contained in:
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
|
||||||
|
|
||||||
|
@ -21,13 +21,19 @@
|
|||||||
|
|
||||||
(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
|
||||||
|
|
||||||
|
@ -52,17 +52,20 @@
|
|||||||
(impl_item
|
(impl_item
|
||||||
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…
Reference in New Issue
Block a user