mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -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
25
lua/tests/indent/python/comprehensions.py
Normal file
25
lua/tests/indent/python/comprehensions.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# list
|
||||
a = [
|
||||
x + 1 for x in range(3)
|
||||
]
|
||||
|
||||
# dict
|
||||
b = {
|
||||
x: x + 1 for x in range(3)
|
||||
}
|
||||
|
||||
# generator
|
||||
c = (
|
||||
x * x for x in range(3)
|
||||
)
|
||||
|
||||
# set
|
||||
d = {
|
||||
x + x for x in range(3)
|
||||
}
|
||||
|
||||
# other styles
|
||||
e = [
|
||||
x + 1 for x
|
||||
in range(3)
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue