textobjects.scm

 1(comment)+ @comment.around
 2
 3(function_declaration
 4    body: (_
 5        "{"
 6        (_)* @function.inside
 7        "}")) @function.around
 8
 9(method_definition
10    body: (_
11        "{"
12        (_)* @function.inside
13        "}")) @function.around
14
15(function_expression
16    body: (_
17        "{"
18        (_)* @function.inside
19        "}")) @function.around
20
21(arrow_function
22    body: (statement_block
23        "{"
24        (_)* @function.inside
25        "}")) @function.around
26
27(arrow_function) @function.around
28
29(generator_function
30    body: (_
31        "{"
32        (_)* @function.inside
33        "}")) @function.around
34
35(generator_function_declaration
36    body: (_
37        "{"
38        (_)* @function.inside
39        "}")) @function.around
40
41(class_declaration
42    body: (_
43        "{"
44        [(_) ";"?]* @class.inside
45        "}" )) @class.around
46
47(class
48    body: (_
49        "{"
50        [(_) ";"?]* @class.inside
51        "}" )) @class.around