diff options
Diffstat (limited to 'queries/python')
| -rw-r--r-- | queries/python/fold.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/queries/python/fold.scm b/queries/python/fold.scm new file mode 100644 index 000000000..22e03b426 --- /dev/null +++ b/queries/python/fold.scm @@ -0,0 +1,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 |
