mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -04:00
feat(python): Improved python indentation (#6859)
* feat: improve python indentation * use lua-match * revert concatenated_string changes, handle function def hanging indents * lint * add delimiters to param query * add test cases
This commit is contained in:
parent
a8c1f36d2c
commit
f16a775830
3 changed files with 81 additions and 4 deletions
35
tests/indent/python/parenthesized_conditions.py
Normal file
35
tests/indent/python/parenthesized_conditions.py
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
if (
|
||||
True
|
||||
or 1
|
||||
or False
|
||||
):
|
||||
pass
|
||||
|
||||
if (
|
||||
True
|
||||
or 1
|
||||
or False):
|
||||
pass
|
||||
|
||||
if (True
|
||||
or 1
|
||||
or False):
|
||||
pass
|
||||
|
||||
while (
|
||||
False
|
||||
or 1
|
||||
or False
|
||||
):
|
||||
pass
|
||||
|
||||
while (
|
||||
False
|
||||
or 1
|
||||
or False):
|
||||
pass
|
||||
|
||||
while (False
|
||||
or 1
|
||||
or False):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue