summaryrefslogtreecommitdiffstats
path: root/src/testdir/test3.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-07-15 14:12:30 +0200
committerBram Moolenaar <Bram@vim.org>2011-07-15 14:12:30 +0200
commit50f42cadb1a5970d3a6b83d961e66fa486df8fcb (patch)
treebcdbc21d3f7bed8e47f9f201e304d480f76f461a /src/testdir/test3.in
parent734d99804b42638ff25480dd8f8f477f2809cc7e (diff)
updated for version 7.3.249v7.3.249
Problem: Wrong indenting for array initializer. Solution: Detect '}' in a better way. (Lech Lorens)
Diffstat (limited to 'src/testdir/test3.in')
-rw-r--r--src/testdir/test3.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/testdir/test3.in b/src/testdir/test3.in
index 1cfd8f23ee..aea055fb3a 100644
--- a/src/testdir/test3.in
+++ b/src/testdir/test3.in
@@ -1452,6 +1452,36 @@ printf("Don't you dare indent this line incorrectly!\n);
STARTTEST
:set cino&
+:set cino+=l1
+2kdd=][
+ENDTEST
+
+void func(void)
+{
+ int tab[] =
+ {
+ 1, 2, 3,
+ 4, 5, 6};
+
+ printf("Indent this line correctly!\n");
+
+ switch (foo)
+ {
+ case bar:
+ printf("bar");
+ break;
+ case baz: {
+ printf("baz");
+ break;
+ }
+ case quux:
+printf("But don't break the indentation of this instruction\n");
+break;
+ }
+}
+
+STARTTEST
+:set cino&
2kdd=][
ENDTEST