Mercurial > vim
diff src/testdir/test3.in @ 2953:9f71f5a526af v7.3.249
updated for version 7.3.249
Problem: Wrong indenting for array initializer.
Solution: Detect '}' in a better way. (Lech Lorens)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 15 Jul 2011 14:12:30 +0200 |
parents | 493897f8bf90 |
children | c296c225736e |
line wrap: on
line diff
--- a/src/testdir/test3.in +++ b/src/testdir/test3.in @@ -1452,6 +1452,36 @@ printf("Don't you dare indent this line 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