~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to test/functional/legacy/003_cindent_spec.lua

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20160418214219-1e6d4o1fwqarzk46
Tags: 0.1.3-1
* New upstream release.  (Closes: #820562)
* debian/control:
  + Remove unnecessary luarocks Build-Depends
  + Add libkvm-dev Build-Depends for kfreebsd-*
  + Add python(3)-neovim to Recommends.  (Closes: #812737)
  + Declare compiance with policy 3.9.8, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
674
674
      {
675
675
      }
676
676
      
 
677
      A::A(int a, int b)
 
678
      : aa(a),
 
679
      bb(b),
 
680
      cc(c)
 
681
      {
 
682
      }
 
683
      
677
684
      class CAbc :
678
685
         public BaseClass1,
679
686
         protected BaseClass2
919
926
          )foo";
920
927
           }
921
928
      
 
929
      {
 
930
      int a[4] = {
 
931
      [0] = 0,
 
932
      [1] = 1,
 
933
      [2] = 2,
 
934
      [3] = 3,
 
935
      };
 
936
      }
 
937
      
 
938
      {
 
939
      a = b[2]
 
940
      + 3;
 
941
      }
 
942
      
 
943
      {
 
944
      if (1)
 
945
      /* aaaaa
 
946
      * bbbbb
 
947
      */
 
948
      a = 1;
 
949
      }
 
950
      
 
951
      void func()
 
952
      {
 
953
      switch (foo)
 
954
      {
 
955
      case (bar):
 
956
      if (baz())
 
957
      quux();
 
958
      break;
 
959
      case (shmoo):
 
960
      if (!bar)
 
961
      {
 
962
      }
 
963
      case (foo1):
 
964
      switch (bar)
 
965
      {
 
966
      case baz:
 
967
      baz_f();
 
968
      break;
 
969
      }
 
970
      break;
 
971
      default:
 
972
      baz();
 
973
      baz();
 
974
      break;
 
975
      }
 
976
      }
 
977
      
922
978
      /* end of AUTO */
923
979
      ]=])
924
980
 
1580
1636
      {
1581
1637
      }
1582
1638
      
 
1639
      A::A(int a, int b)
 
1640
        : aa(a),
 
1641
        bb(b),
 
1642
        cc(c)
 
1643
      {
 
1644
      }
 
1645
      
1583
1646
      class CAbc :
1584
1647
        public BaseClass1,
1585
1648
        protected BaseClass2
1825
1888
          )foo";
1826
1889
      }
1827
1890
      
 
1891
      {
 
1892
        int a[4] = {
 
1893
                [0] = 0,
 
1894
                [1] = 1,
 
1895
                [2] = 2,
 
1896
                [3] = 3,
 
1897
        };
 
1898
      }
 
1899
      
 
1900
      {
 
1901
        a = b[2]
 
1902
                + 3;
 
1903
      }
 
1904
      
 
1905
      {
 
1906
        if (1)
 
1907
                /* aaaaa
 
1908
                 * bbbbb
 
1909
                 */
 
1910
                a = 1;
 
1911
      }
 
1912
      
 
1913
      void func()
 
1914
      {
 
1915
        switch (foo)
 
1916
        {
 
1917
                case (bar):
 
1918
                        if (baz())
 
1919
                                quux();
 
1920
                        break;
 
1921
                case (shmoo):
 
1922
                        if (!bar)
 
1923
                        {
 
1924
                        }
 
1925
                case (foo1):
 
1926
                        switch (bar)
 
1927
                        {
 
1928
                                case baz:
 
1929
                                        baz_f();
 
1930
                                        break;
 
1931
                        }
 
1932
                        break;
 
1933
                default:
 
1934
                        baz();
 
1935
                        baz();
 
1936
                        break;
 
1937
        }
 
1938
      }
 
1939
      
1828
1940
      /* end of AUTO */
1829
1941
      ]=])
1830
1942
  end)