aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/c
diff options
context:
space:
mode:
authorleo60228 <leo@60228.dev>2021-07-31 13:17:14 -0400
committerThomas Vigouroux <tomvig38@gmail.com>2021-08-01 11:01:47 +0200
commit1dea3928a2e04d6acc7a43341fb54f36ddfcdc18 (patch)
tree3b8d52e75e5239ac4713bf58a2579eba9e4e9994 /tests/indent/c
parentIndent C compound_literal_expression (diff)
downloadnvim-treesitter-1dea3928a2e04d6acc7a43341fb54f36ddfcdc18.tar
nvim-treesitter-1dea3928a2e04d6acc7a43341fb54f36ddfcdc18.tar.gz
nvim-treesitter-1dea3928a2e04d6acc7a43341fb54f36ddfcdc18.tar.bz2
nvim-treesitter-1dea3928a2e04d6acc7a43341fb54f36ddfcdc18.tar.lz
nvim-treesitter-1dea3928a2e04d6acc7a43341fb54f36ddfcdc18.tar.xz
nvim-treesitter-1dea3928a2e04d6acc7a43341fb54f36ddfcdc18.tar.zst
nvim-treesitter-1dea3928a2e04d6acc7a43341fb54f36ddfcdc18.zip
add compound_lit.c test
Diffstat (limited to 'tests/indent/c')
-rw-r--r--tests/indent/c/compound_lit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/indent/c/compound_lit.c b/tests/indent/c/compound_lit.c
new file mode 100644
index 000000000..29e336f58
--- /dev/null
+++ b/tests/indent/c/compound_lit.c
@@ -0,0 +1,10 @@
+struct foo {
+ int x, y;
+};
+
+struct foo bar(int x, int y) {
+ return (struct foo) {
+ .x = x,
+ .y = y
+ };
+}