textobjects.scm
1(function_declaration
2 body: (_
3 "{"
4 (_)* @function.inside
5 "}")) @function.around
6
7(method_declaration
8 body: (_
9 "{"
10 (_)* @function.inside
11 "}")) @function.around
12
13(type_declaration
14 (type_spec (struct_type (field_declaration_list (
15 "{"
16 (_)* @class.inside
17 "}")?)))) @class.around
18
19(type_declaration
20 (type_spec (interface_type
21 (_)* @class.inside))) @class.around
22
23(type_declaration) @class.around
24
25(comment)+ @comment.around