comparison 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
comparison
equal deleted inserted replaced
2952:e87a2f7c97fe 2953:9f71f5a526af
1455 printf("Don't you dare indent this line incorrectly!\n); 1455 printf("Don't you dare indent this line incorrectly!\n);
1456 } 1456 }
1457 1457
1458 STARTTEST 1458 STARTTEST
1459 :set cino& 1459 :set cino&
1460 :set cino+=l1
1461 2kdd=][
1462 ENDTEST
1463
1464 void func(void)
1465 {
1466 int tab[] =
1467 {
1468 1, 2, 3,
1469 4, 5, 6};
1470
1471 printf("Indent this line correctly!\n");
1472
1473 switch (foo)
1474 {
1475 case bar:
1476 printf("bar");
1477 break;
1478 case baz: {
1479 printf("baz");
1480 break;
1481 }
1482 case quux:
1483 printf("But don't break the indentation of this instruction\n");
1484 break;
1485 }
1486 }
1487
1488 STARTTEST
1489 :set cino&
1460 2kdd=][ 1490 2kdd=][
1461 ENDTEST 1491 ENDTEST
1462 1492
1463 void func(void) 1493 void func(void)
1464 { 1494 {