aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/python_spec.lua
diff options
context:
space:
mode:
authorPham Huy Hoang <hoangtun0810@gmail.com>2023-03-25 09:51:41 +0900
committerAmaan Qureshi <amaanq12@gmail.com>2023-03-25 00:31:57 -0400
commitc9ef5e58f7d59aba875324825ff47900d0be61f2 (patch)
tree5f13a56d1140931866003b9ba18957a912d6977b /tests/indent/python_spec.lua
parentfeat(python): add match-case indents (diff)
downloadnvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar
nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar.gz
nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar.bz2
nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar.lz
nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar.xz
nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.tar.zst
nvim-treesitter-c9ef5e58f7d59aba875324825ff47900d0be61f2.zip
feat(python): add break/continue dedent
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 2b52d4597..aa9aa83e0 100644
--- a/tests/indent/python_spec.lua
+++ b/tests/indent/python_spec.lua
@@ -88,6 +88,8 @@ describe("indent Python:", function()
run:new_line("match_case.py", { on_line = 5, text = "pass", indent = 12 })
run:new_line("match_case.py", { on_line = 10, text = "pass", indent = 8 })
run:new_line("match_case.py", { on_line = 15, text = "pass", indent = 12 })
+ run:new_line("break_continue.py", { on_line = 4, text = "pass", indent = 8 })
+ run:new_line("break_continue.py", { on_line = 9, text = "pass", indent = 8 })
for _, line in ipairs { 2, 5, 8, 11, 16, 21, 24, 27, 34, 39 } do
run:new_line("return_dedent.py", { on_line = line, text = "x", indent = 0 })