mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
Add Python else elif dedent (#4618)
* feat(python): add interactive else/elif dedent * fixup * add test
This commit is contained in:
parent
358a463c82
commit
1ca9b938c1
3 changed files with 13 additions and 0 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue