mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
Initial sketch of automated indent tests
This commit is contained in:
parent
eefa5662e6
commit
67f2c7149c
14 changed files with 257 additions and 0 deletions
24
lua/tests/indent/python/control_flow.py
Normal file
24
lua/tests/indent/python/control_flow.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
a, b, c, = 1, 2, 3
|
||||
|
||||
if a == a:
|
||||
x = 1
|
||||
elif b:
|
||||
x = 2
|
||||
else:
|
||||
x = 3
|
||||
|
||||
while False:
|
||||
pass
|
||||
|
||||
for _ in range(3):
|
||||
pass
|
||||
|
||||
with open('/tmp/f', 'w') as f:
|
||||
pass
|
||||
|
||||
try:
|
||||
pass
|
||||
except:
|
||||
pass
|
||||
finally:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue