aboutsummaryrefslogtreecommitdiffstats
path: root/lua/tests/indent/python/branches.py
diff options
context:
space:
mode:
Diffstat (limited to 'lua/tests/indent/python/branches.py')
-rw-r--r--lua/tests/indent/python/branches.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/lua/tests/indent/python/branches.py b/lua/tests/indent/python/branches.py
new file mode 100644
index 000000000..7ce106bd7
--- /dev/null
+++ b/lua/tests/indent/python/branches.py
@@ -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