textobjects.scm
1(function_declaration
2 body: (_
3 "{"
4 (_)* @function.inside
5 "}")) @function.around
6
7(test_declaration
8 (block
9 "{"
10 (_)* @function.inside
11 "}")) @function.around
12
13(variable_declaration
14 (struct_declaration
15 "struct"
16 "{"
17 [(_) ","]* @class.inside
18 "}")) @class.around
19
20(variable_declaration
21 (enum_declaration
22 "enum"
23 "{"
24 (_)* @class.inside
25 "}")) @class.around
26
27(comment)+ @comment.around