2025-01-24 04:36:24 +08:00
|
|
|
(function_declaration
|
|
|
|
body: (_) @function.inside) @function.around
|
2022-10-22 06:32:29 +08:00
|
|
|
|
2025-01-24 04:36:24 +08:00
|
|
|
(test_declaration (_) (block) @test.inside) @test.around
|
2022-10-22 06:32:29 +08:00
|
|
|
|
|
|
|
; matches all of: struct, enum, union
|
|
|
|
; this unfortunately cannot be split up because
|
|
|
|
; of the way struct "container" types are defined
|
2025-01-24 04:36:24 +08:00
|
|
|
(variable_declaration (identifier) (struct_declaration
|
|
|
|
(_) @class.inside)) @class.around
|
2022-10-22 06:32:29 +08:00
|
|
|
|
2025-01-24 04:36:24 +08:00
|
|
|
(variable_declaration (identifier) (enum_declaration
|
|
|
|
(_) @class.inside)) @class.around
|
2022-10-22 06:32:29 +08:00
|
|
|
|
2025-01-24 04:36:24 +08:00
|
|
|
(variable_declaration (identifier) (enum_declaration
|
|
|
|
(_) @class.inside)) @class.around
|
|
|
|
|
|
|
|
(parameters
|
2022-10-22 06:32:29 +08:00
|
|
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
|
|
|
|
2025-01-24 04:36:24 +08:00
|
|
|
(comment) @comment.inside
|
|
|
|
(comment)+ @comment.around
|