aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/python
diff options
context:
space:
mode:
authorPham Huy Hoang <hoangtun0810@gmail.com>2023-03-16 08:39:58 +0900
committerAmaan Qureshi <amaanq12@gmail.com>2023-03-16 03:46:01 -0400
commitf5ddd8f92e0222f96b88c6012453eee33e02728a (patch)
treebb7804a1622405590d5b89d62122190576dbc9c4 /tests/indent/python
parentfix: change folding algorithm to fix Python indents (diff)
downloadnvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar
nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar.gz
nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar.bz2
nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar.lz
nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar.xz
nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.tar.zst
nvim-treesitter-f5ddd8f92e0222f96b88c6012453eee33e02728a.zip
fix(python): add missing @indent_end
Diffstat (limited to 'tests/indent/python')
-rw-r--r--tests/indent/python/line_after_indent.py65
1 files changed, 65 insertions, 0 deletions
diff --git a/tests/indent/python/line_after_indent.py b/tests/indent/python/line_after_indent.py
new file mode 100644
index 000000000..ba24dc03f
--- /dev/null
+++ b/tests/indent/python/line_after_indent.py
@@ -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
+]