2022-01-30 06:04:36 +04:00
|
|
|
(class_declaration
|
|
|
|
body: (_) @class.inside) @class.around
|
|
|
|
|
|
|
|
(interface_declaration
|
|
|
|
body: (_) @class.inside) @class.around
|
|
|
|
|
|
|
|
(trait_declaration
|
|
|
|
body: (_) @class.inside) @class.around
|
|
|
|
|
|
|
|
(enum_declaration
|
|
|
|
body: (_) @class.inside) @class.around
|
|
|
|
|
|
|
|
(function_definition
|
|
|
|
body: (_) @function.inside) @function.around
|
|
|
|
|
|
|
|
(method_declaration
|
|
|
|
body: (_) @function.inside) @function.around
|
|
|
|
|
|
|
|
(arrow_function
|
|
|
|
body: (_) @function.inside) @function.around
|
|
|
|
|
|
|
|
(anonymous_function_creation_expression
|
|
|
|
body: (_) @function.inside) @function.around
|
2022-05-23 16:24:30 +04:00
|
|
|
|
|
|
|
(anonymous_function_use_clause
|
|
|
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
|
|
|
|
2022-01-30 06:04:36 +04:00
|
|
|
(formal_parameters
|
2022-05-23 16:24:30 +04:00
|
|
|
([
|
2022-01-30 06:04:36 +04:00
|
|
|
(simple_parameter)
|
|
|
|
(variadic_parameter)
|
|
|
|
(property_promotion_parameter)
|
2022-05-23 16:24:30 +04:00
|
|
|
] @parameter.inside . ","? @parameter.around) @parameter.around)
|
|
|
|
|
|
|
|
(arguments
|
|
|
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
2022-03-06 09:24:24 +04:00
|
|
|
|
|
|
|
(comment) @comment.inside
|
|
|
|
|
|
|
|
(comment)+ @comment.around
|
2024-03-31 20:53:15 +04:00
|
|
|
|
|
|
|
(array_creation_expression
|
|
|
|
(array_element_initializer
|
|
|
|
(_) @entry.inside
|
|
|
|
) @entry.around @entry.movement)
|
|
|
|
|
|
|
|
(list_literal
|
|
|
|
(_) @entry.inside @entry.around @entry.movement)
|
|
|
|
|
|
|
|
[
|
|
|
|
(enum_case)
|
|
|
|
] @entry.around @entry.movement
|