mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -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
27
lua/tests/indent/python/branches.py
Normal file
27
lua/tests/indent/python/branches.py
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
a = [
|
||||
1, 2, 3]
|
||||
|
||||
b = [
|
||||
x + 1
|
||||
for x in range(3)]
|
||||
|
||||
c = [[[
|
||||
1
|
||||
]]]
|
||||
|
||||
d = [[[
|
||||
4]]]
|
||||
|
||||
e = [[
|
||||
1], 2, 3]
|
||||
|
||||
def foo(x, y):
|
||||
pass
|
||||
|
||||
foo(
|
||||
a,
|
||||
b)
|
||||
|
||||
if (a and
|
||||
b):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue