mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
Folds: rename query files to folds.scm to be consistent
We use plural names for all query files except folds.
This commit is contained in:
parent
97113abedc
commit
50991e370b
10 changed files with 3 additions and 3 deletions
25
queries/python/folds.scm
Normal file
25
queries/python/folds.scm
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
(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)
|
||||
(argument_list)
|
||||
|
||||
(parenthesized_expression)
|
||||
(generator_expression)
|
||||
(list_comprehension)
|
||||
(set_comprehension)
|
||||
(dictionary_comprehension)
|
||||
|
||||
(tuple)
|
||||
(list)
|
||||
(set)
|
||||
(dictionary)
|
||||
] @fold
|
||||
Loading…
Add table
Add a link
Reference in a new issue