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
15    (struct_type
16      (field_declaration_list
17        ("{"
18          (_)* @class.inside
19          "}")?)))) @class.around
20
21(type_declaration
22  (type_spec
23    (interface_type
24      (_)* @class.inside))) @class.around
25
26(type_declaration) @class.around
27
28(comment)+ @comment.around