diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-05 19:33:13 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-06 19:42:57 +0100 |
| commit | 9940e4867559ad0cf88ab7cb9bc959b23216ac11 (patch) | |
| tree | e24535b121449243255ae05410b1d832fefc104e /tests/indent/c_spec.lua | |
| parent | chore: expose start and stop highlighter (diff) | |
| download | nvim-treesitter-9940e4867559ad0cf88ab7cb9bc959b23216ac11.tar nvim-treesitter-9940e4867559ad0cf88ab7cb9bc959b23216ac11.tar.gz nvim-treesitter-9940e4867559ad0cf88ab7cb9bc959b23216ac11.tar.bz2 nvim-treesitter-9940e4867559ad0cf88ab7cb9bc959b23216ac11.tar.lz nvim-treesitter-9940e4867559ad0cf88ab7cb9bc959b23216ac11.tar.xz nvim-treesitter-9940e4867559ad0cf88ab7cb9bc959b23216ac11.tar.zst nvim-treesitter-9940e4867559ad0cf88ab7cb9bc959b23216ac11.zip | |
tests: add test for #2086
While this does not test the described problem in insert mode
Diffstat (limited to 'tests/indent/c_spec.lua')
| -rw-r--r-- | tests/indent/c_spec.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/indent/c_spec.lua b/tests/indent/c_spec.lua index 250e05136..040ca9a23 100644 --- a/tests/indent/c_spec.lua +++ b/tests/indent/c_spec.lua @@ -37,6 +37,7 @@ describe("indent C:", function() runner:new_line("switch.c", { on_line = 3, text = "x++;", indent = 12 }) runner:new_line("ternary.c", { on_line = 4, text = ": (x == 0) : 0", indent = 8 }) runner:new_line("issue-1568.c", { on_line = 4, text = "x++;", indent = 8 }) + runner:new_line("issue-2086.c", { on_line = 3, text = "}", indent = 0 }) -- the line after inserted one will be left with wrong indent but we only care about the inserted one runner:new_line("no_braces.c", { on_line = 4, text = "x++;", indent = 8 }) runner:new_line("no_braces.c", { on_line = 7, text = "x++;", indent = 8 }) |
