diff options
author | watiko <service@mail.watiko.net> | 2016-02-15 20:57:10 +0900 |
---|---|---|
committer | watiko <service@mail.watiko.net> | 2016-02-15 21:08:22 +0900 |
commit | ade2298735a17f8d71ae97fc17fc9059b12b99a1 (patch) | |
tree | 2fc5204a0731bc423d3a4c9dd5b3a045c5b4bbb1 /test/functional/legacy/003_cindent_spec.lua | |
parent | 72d5a88af5f417a8312408d85dbb6949f64146b2 (diff) | |
download | rneovim-ade2298735a17f8d71ae97fc17fc9059b12b99a1.tar.gz rneovim-ade2298735a17f8d71ae97fc17fc9059b12b99a1.tar.bz2 rneovim-ade2298735a17f8d71ae97fc17fc9059b12b99a1.zip |
vim-patch:7.4.912
Problem: Wrong indenting for C++ constructor.
Solution: Recognize ::. (Anhong)
https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Diffstat (limited to 'test/functional/legacy/003_cindent_spec.lua')
-rw-r--r-- | test/functional/legacy/003_cindent_spec.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/legacy/003_cindent_spec.lua b/test/functional/legacy/003_cindent_spec.lua index 9831c7a7d8..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 @@ -1629,6 +1636,13 @@ describe('cindent', function() { } + A::A(int a, int b) + : aa(a), + bb(b), + cc(c) + { + } + class CAbc : public BaseClass1, protected BaseClass2 |