2023-03-15 22:22:24 +01: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 01:04:55 +02:00
|
|
|
(function_literal
|
2023-03-15 22:22:24 +01: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 01:04:55 +02:00
|
|
|
(struct_field_declaration) @class.inside) @class.around
|
2023-03-15 22:22:24 +01:00
|
|
|
|
2023-07-31 01:04:55 +02:00
|
|
|
(struct_field_declaration
|
2023-03-15 22:22:24 +01:00
|
|
|
((_) @parameter.inside) @parameter.around)
|
|
|
|
|
|
|
|
(comment) @comment.inside
|
|
|
|
(comment)+ @comment.around
|
|
|
|
|