comparison src/testdir/test3.ok @ 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
1308 } 1308 }
1309 1309
1310 1310
1311 void func(void) 1311 void func(void)
1312 { 1312 {
1313 int tab[] =
1314 {
1315 1, 2, 3,
1316 4, 5, 6};
1317
1318 printf("Indent this line correctly!\n");
1319
1320 switch (foo)
1321 {
1322 case bar:
1323 printf("bar");
1324 break;
1325 case baz: {
1326 printf("baz");
1327 break;
1328 }
1329 case quux:
1330 printf("But don't break the indentation of this instruction\n");
1331 break;
1332 }
1333 }
1334
1335
1336 void func(void)
1337 {
1313 cout << "a" 1338 cout << "a"
1314 << "b" 1339 << "b"
1315 << ") :" 1340 << ") :"
1316 << "c"; 1341 << "c";
1317 } 1342 }