aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python/fold.scm
blob: 22e03b426d3c1a22919d86b1d4e41ae500f9a6cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(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)

  (parenthesized_expression)
  (generator_expression)
  (list_comprehension)
  (set_comprehension)
  (dictionary_comprehension)

  (tuple)
  (list)
  (set)
  (dictionary)
] @fold