aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/python/if_else.py
diff options
context:
space:
mode:
authorPham Huy Hoang <hoangtun0810@gmail.com>2023-04-29 17:35:35 +0900
committerGitHub <noreply@github.com>2023-04-29 10:35:35 +0200
commit1ca9b938c1c3d8b2c64a168f6a5419b8f3870410 (patch)
tree708625a300dca93d3fcac5935c8e2be094c914bd /tests/indent/python/if_else.py
parentUpdate parsers: erlang, haskell (diff)
downloadnvim-treesitter-1ca9b938c1c3d8b2c64a168f6a5419b8f3870410.tar
nvim-treesitter-1ca9b938c1c3d8b2c64a168f6a5419b8f3870410.tar.gz
nvim-treesitter-1ca9b938c1c3d8b2c64a168f6a5419b8f3870410.tar.bz2
nvim-treesitter-1ca9b938c1c3d8b2c64a168f6a5419b8f3870410.tar.lz
nvim-treesitter-1ca9b938c1c3d8b2c64a168f6a5419b8f3870410.tar.xz
nvim-treesitter-1ca9b938c1c3d8b2c64a168f6a5419b8f3870410.tar.zst
nvim-treesitter-1ca9b938c1c3d8b2c64a168f6a5419b8f3870410.zip
Add Python else elif dedent (#4618)
* feat(python): add interactive else/elif dedent * fixup * add test
Diffstat (limited to 'tests/indent/python/if_else.py')
-rw-r--r--tests/indent/python/if_else.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/indent/python/if_else.py b/tests/indent/python/if_else.py
new file mode 100644
index 000000000..d128597f0
--- /dev/null
+++ b/tests/indent/python/if_else.py
@@ -0,0 +1,3 @@
+def test_branch_else():
+ if True:
+ x = 1