diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2023-03-25 09:29:32 +0900 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-25 00:31:57 -0400 |
| commit | 1ffa01985651f6a5ba88d01e56f09cb76ff6e79a (patch) | |
| tree | c7a08558dca3404298792bcb978cb53e93be19d5 /tests/indent/python_spec.lua | |
| parent | fix: uninstall function in the install.lua (diff) | |
| download | nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar.gz nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar.bz2 nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar.lz nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar.xz nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.tar.zst nvim-treesitter-1ffa01985651f6a5ba88d01e56f09cb76ff6e79a.zip | |
feat(python): add match-case indents
Diffstat (limited to 'tests/indent/python_spec.lua')
| -rw-r--r-- | tests/indent/python_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/indent/python_spec.lua b/tests/indent/python_spec.lua index 6f4e0fec7..2b52d4597 100644 --- a/tests/indent/python_spec.lua +++ b/tests/indent/python_spec.lua @@ -84,6 +84,10 @@ describe("indent Python:", function() run:new_line("line_after_indent.py", { on_line = 49, text = "x", indent = 0 }) run:new_line("line_after_indent.py", { on_line = 55, text = "x", indent = 4 }) run:new_line("line_after_indent.py", { on_line = 63, text = "x", indent = 4 }) + run:new_line("match_case.py", { on_line = 4, text = "pass", indent = 8 }) + 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 }) 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 }) |
