nvim-treesitter/queries/python/folds.scm

28 lines
476 B
Scheme
Raw Normal View History

2020-09-03 11:09:57 -05:00
(function_definition (block) @fold)
(class_definition (block) @fold)
(while_statement (block) @fold)
(for_statement (block) @fold)
(if_statement (block) @fold)
(with_statement (block) @fold)
(try_statement (block) @fold)
[
(import_from_statement)
(parameters)
2020-09-03 11:58:49 -05:00
(argument_list)
2020-09-03 11:09:57 -05:00
(parenthesized_expression)
(generator_expression)
(list_comprehension)
(set_comprehension)
(dictionary_comprehension)
(tuple)
(list)
(set)
(dictionary)
(string)
2020-09-03 11:09:57 -05:00
] @fold