mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(python): add missing @indent_end
This commit is contained in:
parent
fa0644667e
commit
f5ddd8f92e
3 changed files with 95 additions and 2 deletions
65
tests/indent/python/line_after_indent.py
Normal file
65
tests/indent/python/line_after_indent.py
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
(
|
||||
a,
|
||||
b
|
||||
)
|
||||
|
||||
foo.bar(
|
||||
a, b
|
||||
)
|
||||
|
||||
foo = [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
|
||||
foo = {
|
||||
"a": 1,
|
||||
"b": 2,
|
||||
"c": 3
|
||||
}
|
||||
|
||||
foo = {
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
}
|
||||
|
||||
foo = (
|
||||
1 + 2
|
||||
)
|
||||
|
||||
(
|
||||
a for a in range(0, 10)
|
||||
)
|
||||
|
||||
foo = [
|
||||
a for a in range(0, 10)
|
||||
]
|
||||
|
||||
foo = {
|
||||
a for a in range(0, 10)
|
||||
}
|
||||
|
||||
foo = {
|
||||
a: b for a, b in items
|
||||
}
|
||||
|
||||
foo.bar(
|
||||
"baz")
|
||||
|
||||
[
|
||||
a + b for (
|
||||
a,
|
||||
b
|
||||
)
|
||||
in items
|
||||
]
|
||||
|
||||
[
|
||||
a + b for [
|
||||
a,
|
||||
b
|
||||
]
|
||||
in items
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue