comparison src/testdir/test3.ok @ 3454:214c7ec1c8f9 v7.3.492

updated for version 7.3.492 Problem: Can't indent conditions separately from function arguments. Solution: Add the 'k' flag in 'cino. (Lech Lorens)
author Bram Moolenaar <bram@vim.org>
date Thu, 05 Apr 2012 17:17:42 +0200
parents 534b3ef1cf14
children c0c935956ac3
comparison
equal deleted inserted replaced
3453:f2ce0c2b95b7 3454:214c7ec1c8f9
1409 foo(0); 1409 foo(0);
1410 baz(); 1410 baz();
1411 } 1411 }
1412 1412
1413 1413
1414 void func(void)
1415 {
1416 if (condition1
1417 && condition2)
1418 action();
1419 function(argument1
1420 && argument2);
1421
1422 if (c1 && (c2 ||
1423 c3))
1424 foo;
1425 if (c1 &&
1426 (c2 || c3))
1427 {
1428 }
1429
1430 if ( c1
1431 && ( c2
1432 || c3))
1433 foo;
1434 func( c1
1435 && ( c2
1436 || c3))
1437 foo;
1438 }
1439
1440
1441 void func(void)
1442 {
1443 if (condition1
1444 && condition2)
1445 action();
1446 function(argument1
1447 && argument2);
1448
1449 if (c1 && (c2 ||
1450 c3))
1451 foo;
1452 if (c1 &&
1453 (c2 || c3))
1454 {
1455 }
1456
1457 if ( c1
1458 && ( c2
1459 || c3))
1460 foo;
1461 func( c1
1462 && ( c2
1463 || c3))
1464 foo;
1465 }
1466
1467
1468 void func(void)
1469 {
1470 if (condition1
1471 && condition2)
1472 action();
1473 function(argument1
1474 && argument2);
1475
1476 if (c1 && (c2 ||
1477 c3))
1478 foo;
1479 if (c1 &&
1480 (c2 || c3))
1481 {
1482 }
1483 if (c123456789
1484 && (c22345
1485 || c3))
1486 printf("foo\n");
1487
1488 c = c1 &&
1489 (
1490 c2 ||
1491 c3
1492 ) && c4;
1493 }
1494
1495
1496 void func(void)
1497 {
1498 if (condition1
1499 && condition2)
1500 action();
1501 function(argument1
1502 && argument2);
1503
1504 if (c1 && (c2 ||
1505 c3))
1506 foo;
1507 if (c1 &&
1508 (c2 || c3))
1509 {
1510 }
1511 if (c123456789
1512 && (c22345
1513 || c3))
1514 printf("foo\n");
1515
1516 if ( c1
1517 && ( c2
1518 || c3))
1519 foo;
1520
1521 a_long_line(
1522 argument,
1523 argument);
1524 a_short_line(argument,
1525 argument);
1526 }
1527
1528
1529 void func(void)
1530 {
1531 if (condition1
1532 && condition2)
1533 action();
1534 function(argument1
1535 && argument2);
1536
1537 if (c1 && (c2 ||
1538 c3))
1539 foo;
1540 if (c1 &&
1541 (c2 || c3))
1542 {
1543 }
1544 if (c123456789
1545 && (c22345
1546 || c3))
1547 printf("foo\n");
1548 }
1549
1550
1551 void func(void)
1552 {
1553 if (condition1
1554 && condition2)
1555 action();
1556 function(argument1
1557 && argument2);
1558
1559 if (c1 && (c2 ||
1560 c3))
1561 foo;
1562 if (c1 &&
1563 (c2 || c3))
1564 {
1565 }
1566 if (c123456789
1567 && (c22345
1568 || c3))
1569 printf("foo\n");
1570
1571 if ( c1
1572 && ( c2
1573 || c3))
1574 foo;
1575 func( c1
1576 && ( c2
1577 || c3))
1578 foo;
1579 }
1580
1581
1582 void func(void)
1583 {
1584 if (condition1
1585 && condition2)
1586 action();
1587 function(argument1
1588 && argument2);
1589
1590 if (c1 && (c2 ||
1591 c3))
1592 foo;
1593 if (c1 &&
1594 (c2 || c3))
1595 {
1596 }
1597 }
1598
1599
1414 NAMESPACESTART 1600 NAMESPACESTART
1415 /* valid namespaces with normal indent */ 1601 /* valid namespaces with normal indent */
1416 namespace 1602 namespace
1417 { 1603 {
1418 { 1604 {