aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/c_spec.lua
diff options
context:
space:
mode:
authorleo60228 <leo@60228.dev>2021-07-31 13:17:14 -0400
committerStephan Seitz <stephan.seitz@fau.de>2021-09-17 21:06:36 +0200
commitd8d45ffb63e84a52089d24e057bec9873212a0ac (patch)
tree3b8d52e75e5239ac4713bf58a2579eba9e4e9994 /tests/indent/c_spec.lua
parentIndent C compound_literal_expression (diff)
downloadnvim-treesitter-d8d45ffb63e84a52089d24e057bec9873212a0ac.tar
nvim-treesitter-d8d45ffb63e84a52089d24e057bec9873212a0ac.tar.gz
nvim-treesitter-d8d45ffb63e84a52089d24e057bec9873212a0ac.tar.bz2
nvim-treesitter-d8d45ffb63e84a52089d24e057bec9873212a0ac.tar.lz
nvim-treesitter-d8d45ffb63e84a52089d24e057bec9873212a0ac.tar.xz
nvim-treesitter-d8d45ffb63e84a52089d24e057bec9873212a0ac.tar.zst
nvim-treesitter-d8d45ffb63e84a52089d24e057bec9873212a0ac.zip
add compound_lit.c test
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 f48cbd0aa..1bdd01655 100644
--- a/tests/indent/c_spec.lua
+++ b/tests/indent/c_spec.lua
@@ -14,6 +14,7 @@ describe("indent C:", function()
describe("new line:", function()
runner:new_line("array.c", { on_line = 2, text = "0,", indent = 4 })
+ runner:new_line("compound_lit.c", { on_line = 7, text = ".z = 5,", indent = 8 })
runner:new_line("cond.c", { on_line = 3, text = "x++;", indent = 8 })
runner:new_line("cond.c", { on_line = 8, text = "x++;", indent = 8 })
runner:new_line("expr.c", { on_line = 10, text = "2 *", indent = 8 })