diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-02-22 01:02:18 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-22 01:02:18 -0500 |
commit | 73676ad37be5026b3b06c0db23309b97f5307de4 (patch) | |
tree | 37e15b7a5f03821524c43a761b9a8833c3bf037a /test | |
parent | 2eb09c826d7afba38331b4001db709df9c633894 (diff) | |
parent | ade2298735a17f8d71ae97fc17fc9059b12b99a1 (diff) | |
download | rneovim-73676ad37be5026b3b06c0db23309b97f5307de4.tar.gz rneovim-73676ad37be5026b3b06c0db23309b97f5307de4.tar.bz2 rneovim-73676ad37be5026b3b06c0db23309b97f5307de4.zip |
Merge pull request #4262 from watiko/vim-7.4.893
vim-patch:7.4.{891,893,912}
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/legacy/003_cindent_spec.lua | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/test/functional/legacy/003_cindent_spec.lua b/test/functional/legacy/003_cindent_spec.lua index 19694550f4..4b838eda1d 100644 --- a/test/functional/legacy/003_cindent_spec.lua +++ b/test/functional/legacy/003_cindent_spec.lua @@ -674,6 +674,13 @@ describe('cindent', function() { } + A::A(int a, int b) + : aa(a), + bb(b), + cc(c) + { + } + class CAbc : public BaseClass1, protected BaseClass2 @@ -919,6 +926,55 @@ describe('cindent', function() )foo"; } + { + int a[4] = { + [0] = 0, + [1] = 1, + [2] = 2, + [3] = 3, + }; + } + + { + a = b[2] + + 3; + } + + { + if (1) + /* aaaaa + * bbbbb + */ + a = 1; + } + + void func() + { + switch (foo) + { + case (bar): + if (baz()) + quux(); + break; + case (shmoo): + if (!bar) + { + } + case (foo1): + switch (bar) + { + case baz: + baz_f(); + break; + } + break; + default: + baz(); + baz(); + break; + } + } + /* end of AUTO */ ]=]) @@ -1580,6 +1636,13 @@ describe('cindent', function() { } + A::A(int a, int b) + : aa(a), + bb(b), + cc(c) + { + } + class CAbc : public BaseClass1, protected BaseClass2 @@ -1825,6 +1888,55 @@ describe('cindent', function() )foo"; } + { + int a[4] = { + [0] = 0, + [1] = 1, + [2] = 2, + [3] = 3, + }; + } + + { + a = b[2] + + 3; + } + + { + if (1) + /* aaaaa + * bbbbb + */ + a = 1; + } + + void func() + { + switch (foo) + { + case (bar): + if (baz()) + quux(); + break; + case (shmoo): + if (!bar) + { + } + case (foo1): + switch (bar) + { + case baz: + baz_f(); + break; + } + break; + default: + baz(); + baz(); + break; + } + } + /* end of AUTO */ ]=]) end) |