You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
(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
|
|
|
|
|
|
|
|
(anonymous_function_use_clause
|
|
|
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
|
|
|
|
|
|
|
(formal_parameters
|
|
|
|
([
|
|
|
|
(simple_parameter)
|
|
|
|
(variadic_parameter)
|
|
|
|
(property_promotion_parameter)
|
|
|
|
] @parameter.inside . ","? @parameter.around) @parameter.around)
|
|
|
|
|
|
|
|
(arguments
|
|
|
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
|
|
|
|
|
|
|
(comment) @comment.inside
|
|
|
|
|
|
|
|
(comment)+ @comment.around
|