mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
feat(treesitter): add python parser and queries
This commit is contained in:
28
runtime/queries/python/folds.scm
Normal file
28
runtime/queries/python/folds.scm
Normal file
@@ -0,0 +1,28 @@
|
||||
[
|
||||
(function_definition)
|
||||
(class_definition)
|
||||
|
||||
(while_statement)
|
||||
(for_statement)
|
||||
(if_statement)
|
||||
(with_statement)
|
||||
(try_statement)
|
||||
(match_statement)
|
||||
|
||||
(import_from_statement)
|
||||
(parameters)
|
||||
(argument_list)
|
||||
|
||||
(parenthesized_expression)
|
||||
(generator_expression)
|
||||
(list_comprehension)
|
||||
(set_comprehension)
|
||||
(dictionary_comprehension)
|
||||
|
||||
(tuple)
|
||||
(list)
|
||||
(set)
|
||||
(dictionary)
|
||||
|
||||
(string)
|
||||
] @fold
|
Reference in New Issue
Block a user