aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/python_spec.lua
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_spec.lua
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_spec.lua')
-rw-r--r--tests/indent/python_spec.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/indent/python_spec.lua b/tests/indent/python_spec.lua
index aa9aa83e0..ec44d551c 100644
--- a/tests/indent/python_spec.lua
+++ b/tests/indent/python_spec.lua
@@ -50,6 +50,8 @@ describe("indent Python:", function()
run:new_line("error_state_dict.py", { on_line = 6, text = "9:10,", indent = 6 })
run:new_line("error_state_set.py", { on_line = 5, text = "9,", indent = 6 })
run:new_line("error_state_funcall.py", { on_line = 5, text = "6,", indent = 2 })
+ run:new_line("if_else.py", { on_line = 5, text = "else:", indent = 4 })
+ run:new_line("if_else.py", { on_line = 5, text = "elif False:", indent = 4 })
run:new_line(
"join_lines.py",
{ on_line = 1, text = "+ 1 \\", indent = 4 },