comparison src/testdir/test3.in @ 2857:f80e67bd6271 v7.3.202

updated for version 7.3.202 Problem: Cannot influence the indent inside a namespace. Solution: Add the "N" 'cino' parameter. (Konstantin Lepa)
author Bram Moolenaar <bram@vim.org>
date Wed, 25 May 2011 15:16:18 +0200
parents 78859ef2982b
children 493897f8bf90
comparison
equal deleted inserted replaced
2856:09fc31c1082e 2857:f80e67bd6271
797 char foo[] = "/*"; 797 char foo[] = "/*";
798 /* as 798 /* as
799 df */ 799 df */
800 hello 800 hello
801 } 801 }
802
803 /* valid namespaces with normal indent */
804 namespace
805 {
806 {
807 111111111111;
808 }
809 }
810 namespace /* test */
811 {
812 11111111111111111;
813 }
814 namespace // test
815 {
816 111111111111111111;
817 }
818 namespace
819 {
820 111111111111111111;
821 }
822 namespace test
823 {
824 111111111111111111;
825 }
826 namespace{
827 111111111111111111;
828 }
829 namespace test{
830 111111111111111111;
831 }
832 namespace {
833 111111111111111111;
834 }
835 namespace test {
836 111111111111111111;
837 namespace test2 {
838 22222222222222222;
839 }
840 }
841
842 /* invalid namespaces use block indent */
843 namespace test test2 {
844 111111111111111111111;
845 }
846 namespace11111111111 {
847 111111111111;
848 }
849 namespace() {
850 1111111111111;
851 }
852 namespace()
853 {
854 111111111111111111;
855 }
856 namespace test test2
857 {
858 1111111111111111111;
859 }
860 namespace111111111
861 {
862 111111111111111111;
863 }
864
802 /* end of AUTO */ 865 /* end of AUTO */
803 866
804 STARTTEST 867 STARTTEST
805 :set tw=0 wm=60 columns=80 noai fo=croq 868 :set tw=0 wm=60 columns=80 noai fo=croq
806 /serious/e 869 /serious/e
1431 foo(0); 1494 foo(0);
1432 baz(); 1495 baz();
1433 } 1496 }
1434 1497
1435 STARTTEST 1498 STARTTEST
1499 :set cino=N-s
1500 /namespaces
1501 =/^NAMESPACEEND
1502 ENDTEST
1503
1504 /* valid namespaces with normal indent */
1505 namespace
1506 {
1507 {
1508 111111111111;
1509 }
1510 }
1511 namespace /* test */
1512 {
1513 11111111111111111;
1514 }
1515 namespace // test
1516 {
1517 111111111111111111;
1518 }
1519 namespace
1520 {
1521 111111111111111111;
1522 }
1523 namespace test
1524 {
1525 111111111111111111;
1526 }
1527 namespace{
1528 111111111111111111;
1529 }
1530 namespace test{
1531 111111111111111111;
1532 }
1533 namespace {
1534 111111111111111111;
1535 }
1536 namespace test {
1537 111111111111111111;
1538 namespace test2 {
1539 22222222222222222;
1540 }
1541 }
1542
1543 /* invalid namespaces use block indent */
1544 namespace test test2 {
1545 111111111111111111111;
1546 }
1547 namespace11111111111 {
1548 111111111111;
1549 }
1550 namespace() {
1551 1111111111111;
1552 }
1553 namespace()
1554 {
1555 111111111111111111;
1556 }
1557 namespace test test2
1558 {
1559 1111111111111111111;
1560 }
1561 namespace111111111
1562 {
1563 111111111111111111;
1564 }
1565 NAMESPACEEND
1566
1567
1568 STARTTEST
1436 :g/^STARTTEST/.,/^ENDTEST/d 1569 :g/^STARTTEST/.,/^ENDTEST/d
1437 :1;/start of AUTO/,$wq! test.out 1570 :1;/start of AUTO/,$wq! test.out
1438 ENDTEST 1571 ENDTEST