2022-11-14 00:10:02 +08:00
|
|
|
(function_definition (block) @fold)
|
|
|
|
(class_definition (block) @fold)
|
2022-04-14 12:01:23 +08:00
|
|
|
|
2022-11-14 00:10:02 +08:00
|
|
|
(while_statement (block) @fold)
|
|
|
|
(for_statement (block) @fold)
|
|
|
|
(if_statement (block) @fold)
|
|
|
|
(with_statement (block) @fold)
|
|
|
|
(try_statement (block) @fold)
|
2022-04-14 12:01:23 +08:00
|
|
|
|
2022-11-14 00:10:02 +08:00
|
|
|
[
|
2022-04-14 12:01:23 +08:00
|
|
|
(import_from_statement)
|
|
|
|
(parameters)
|
|
|
|
(argument_list)
|
|
|
|
|
|
|
|
(parenthesized_expression)
|
|
|
|
(generator_expression)
|
|
|
|
(list_comprehension)
|
|
|
|
(set_comprehension)
|
|
|
|
(dictionary_comprehension)
|
|
|
|
|
|
|
|
(tuple)
|
|
|
|
(list)
|
|
|
|
(set)
|
|
|
|
(dictionary)
|
|
|
|
|
|
|
|
(string)
|
|
|
|
] @fold
|