mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
Improve python/indents.scm
This commit is contained in:
parent
b938e4f0fe
commit
ac42192e19
1 changed files with 29 additions and 7 deletions
|
|
@ -1,16 +1,38 @@
|
||||||
[
|
[
|
||||||
(function_definition)
|
(list)
|
||||||
|
(tuple)
|
||||||
|
(dictionary)
|
||||||
|
(set)
|
||||||
|
|
||||||
(if_statement)
|
(if_statement)
|
||||||
|
(for_statement)
|
||||||
|
(while_statement)
|
||||||
(with_statement)
|
(with_statement)
|
||||||
(try_statement)
|
(try_statement)
|
||||||
(for_statement)
|
(import_from_statement)
|
||||||
(for_in_clause)
|
|
||||||
|
(parenthesized_expression)
|
||||||
|
(generator_expression)
|
||||||
|
(list_comprehension)
|
||||||
|
(set_comprehension)
|
||||||
|
(dictionary_comprehension)
|
||||||
|
|
||||||
|
(tuple_pattern)
|
||||||
|
(list_pattern)
|
||||||
|
(argument_list)
|
||||||
|
(parameters)
|
||||||
|
(binary_operator)
|
||||||
|
|
||||||
|
(function_definition)
|
||||||
(class_definition)
|
(class_definition)
|
||||||
] @indent
|
] @indent
|
||||||
|
|
||||||
[
|
[
|
||||||
"elif"
|
")"
|
||||||
"else"
|
"]"
|
||||||
"finally"
|
"}"
|
||||||
"except"
|
(elif_clause)
|
||||||
|
(else_clause)
|
||||||
|
(except_clause)
|
||||||
|
(finally_clause)
|
||||||
] @branch
|
] @branch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue