diff options
| author | Munif Tanjim <hello@muniftanjim.dev> | 2022-01-17 04:44:01 +0600 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-01-21 10:51:51 +0100 |
| commit | baf94219aae2ec2893c197f17e2eb36789b6a1d7 (patch) | |
| tree | b8ac5b17935a5b9f1bd8538ddd8b97a606e69892 /tests/indent/python_spec.lua | |
| parent | Update README (diff) | |
| download | nvim-treesitter-baf94219aae2ec2893c197f17e2eb36789b6a1d7.tar nvim-treesitter-baf94219aae2ec2893c197f17e2eb36789b6a1d7.tar.gz nvim-treesitter-baf94219aae2ec2893c197f17e2eb36789b6a1d7.tar.bz2 nvim-treesitter-baf94219aae2ec2893c197f17e2eb36789b6a1d7.tar.lz nvim-treesitter-baf94219aae2ec2893c197f17e2eb36789b6a1d7.tar.xz nvim-treesitter-baf94219aae2ec2893c197f17e2eb36789b6a1d7.tar.zst nvim-treesitter-baf94219aae2ec2893c197f17e2eb36789b6a1d7.zip | |
feat: improve indent module
get_node_at_line should return appropriate child if available
Diffstat (limited to 'tests/indent/python_spec.lua')
| -rw-r--r-- | tests/indent/python_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/indent/python_spec.lua b/tests/indent/python_spec.lua index f1769c4d8..18a1413a2 100644 --- a/tests/indent/python_spec.lua +++ b/tests/indent/python_spec.lua @@ -26,8 +26,8 @@ describe("indent Python:", function() run:new_line("basic_blocks.py", { on_line = 1, text = "wait,", indent = 4 }) run:new_line("basic_blocks.py", { on_line = 6, text = "x += 1", indent = 4 }) run:new_line("basic_blocks.py", { on_line = 10, text = "x += 1", indent = 8 }) - run:new_line("basic_blocks.py", { on_line = 7, text = "x += 1", indent = 4 }, "7, after last line of a block") - run:new_line("basic_blocks.py", { on_line = 11, text = "x += 1", indent = 8 }, "11, after last line of a block") + run:new_line("basic_blocks.py", { on_line = 7, text = "x += 1", indent = 0 }) + run:new_line("basic_blocks.py", { on_line = 11, text = "x += 1", indent = 4 }) run:new_line("basic_collections.py", { on_line = 3, text = "4,", indent = 4 }) run:new_line("comprehensions.py", { on_line = 8, text = "if x != 2", indent = 4 }) run:new_line("control_flow.py", { on_line = 23, text = "x = 4", indent = 4 }, "expected failure", XFAIL) |
