aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/c_spec.lua
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-02-05 19:24:41 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-02-05 19:29:14 +0100
commita62971e0efcbe025693ccfaf688b62d185fd50da (patch)
treee79cff158d8ab2e75b481a4b4c744888381d82ef /tests/indent/c_spec.lua
parenttests: add indent test for graphql (#2459) (diff)
downloadnvim-treesitter-a62971e0efcbe025693ccfaf688b62d185fd50da.tar
nvim-treesitter-a62971e0efcbe025693ccfaf688b62d185fd50da.tar.gz
nvim-treesitter-a62971e0efcbe025693ccfaf688b62d185fd50da.tar.bz2
nvim-treesitter-a62971e0efcbe025693ccfaf688b62d185fd50da.tar.lz
nvim-treesitter-a62971e0efcbe025693ccfaf688b62d185fd50da.tar.xz
nvim-treesitter-a62971e0efcbe025693ccfaf688b62d185fd50da.tar.zst
nvim-treesitter-a62971e0efcbe025693ccfaf688b62d185fd50da.zip
tests: Add test for C folding issue #1568
Also this issue has already been fixed
Diffstat (limited to 'tests/indent/c_spec.lua')
-rw-r--r--tests/indent/c_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/indent/c_spec.lua b/tests/indent/c_spec.lua
index 2c19ba774..250e05136 100644
--- a/tests/indent/c_spec.lua
+++ b/tests/indent/c_spec.lua
@@ -36,6 +36,7 @@ describe("indent C:", function()
runner:new_line("struct.c", { on_line = 4, text = "int y;", indent = 8 })
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 })
-- 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 })