textobjects.scm

 1(declaration
 2  declarator: (function_declarator)) @function.around
 3
 4(function_definition
 5  body: (_
 6    "{"
 7    (_)* @function.inside
 8    "}")) @function.around
 9
10(preproc_function_def
11  value: (_) @function.inside) @function.around
12
13(comment) @comment.around
14
15(struct_specifier
16  body: (_
17    "{"
18    (_)* @class.inside
19    "}")) @class.around
20
21(enum_specifier
22  body: (_
23    "{"
24    [
25      (_)
26      ","?
27    ]* @class.inside
28    "}")) @class.around
29
30(union_specifier
31  body: (_
32    "{"
33    (_)* @class.inside
34    "}")) @class.around