2023-03-16 01:22:24 +04:00
|
|
|
(function_declaration
|
|
|
|
body: (block)? @function.inside) @function.around
|
|
|
|
|
|
|
|
((function_declaration
|
|
|
|
name: (identifier) @_name
|
|
|
|
body: (block)? @test.inside) @test.around
|
|
|
|
(#match? @_name "^test"))
|
|
|
|
|
2023-07-31 03:04:55 +04:00
|
|
|
(function_literal
|
2023-03-16 01:22:24 +04:00
|
|
|
body: (block)? @function.inside) @function.around
|
|
|
|
|
|
|
|
(parameter_list
|
|
|
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
|
|
|
|
|
|
|
(call_expression
|
|
|
|
(argument_list
|
|
|
|
((_) @parameter.inside) @parameter.around))
|
|
|
|
|
|
|
|
(struct_declaration
|
2023-07-31 03:04:55 +04:00
|
|
|
(struct_field_declaration) @class.inside) @class.around
|
2023-03-16 01:22:24 +04:00
|
|
|
|
2023-07-31 03:04:55 +04:00
|
|
|
(struct_field_declaration
|
2023-03-16 01:22:24 +04:00
|
|
|
((_) @parameter.inside) @parameter.around)
|
|
|
|
|
|
|
|
(comment) @comment.inside
|
|
|
|
(comment)+ @comment.around
|
|
|
|
|