diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-04-09 22:13:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-09 22:13:34 +0800 |
| commit | f3183a4d7c051e8062d28cfc9905b21e13bb7775 (patch) | |
| tree | c1b15674392d50ce4b2f3d2f9c9ffe765373a69a /src/nvim/testdir | |
| parent | 8055f9857b8e384634d457533dfdb08618fc36f0 (diff) | |
| parent | bf39c5fe4fcd54f32610849b5bacd129e449729d (diff) | |
| download | rneovim-f3183a4d7c051e8062d28cfc9905b21e13bb7775.tar.gz rneovim-f3183a4d7c051e8062d28cfc9905b21e13bb7775.tar.bz2 rneovim-f3183a4d7c051e8062d28cfc9905b21e13bb7775.zip | |
Merge pull request #18023 from tom-anders/vim-8.2.4702
vim-patch:8.2.{4702,4703}: C++ scope labels are hard-coded
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_cindent.vim | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cindent.vim b/src/nvim/testdir/test_cindent.vim index 4b702bf2b8..4d69aed96c 100644 --- a/src/nvim/testdir/test_cindent.vim +++ b/src/nvim/testdir/test_cindent.vim @@ -5311,6 +5311,49 @@ func Test_cindent_case() bwipe! endfunc +func Test_cindent_scopedecls() + new + setl cindent ts=4 sw=4 + setl cino=g0 + setl cinsd+=public\ slots,signals + + let code =<< trim [CODE] + class Foo + { + public: + virtual void foo() = 0; + public slots: + void onBar(); + signals: + void baz(); + private: + int x; + }; + [CODE] + + call append(0, code) + normal gg + normal ]]=][ + + let expected =<< trim [CODE] + class Foo + { + public: + virtual void foo() = 0; + public slots: + void onBar(); + signals: + void baz(); + private: + int x; + }; + + [CODE] + + call assert_equal(expected, getline(1, '$')) + enew! | close +endfunc + func Test_cindent_pragma() new setl cindent ts=4 sw=4 |