diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-03-25 09:27:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 09:27:42 +0800 |
commit | aab4443bb907a0cf7ef874c22f8cfae667b65552 (patch) | |
tree | 7fb8c3ceba55c2f1317ec7cb4e9fff76e377f21a /test | |
parent | ac7397f4a06e451fedde86fb4eba0038d0d75e68 (diff) | |
download | rneovim-aab4443bb907a0cf7ef874c22f8cfae667b65552.tar.gz rneovim-aab4443bb907a0cf7ef874c22f8cfae667b65552.tar.bz2 rneovim-aab4443bb907a0cf7ef874c22f8cfae667b65552.zip |
vim-patch:9.0.1426: indent wrong after "export namespace" in C++ (#22777)
Problem: Indent wrong after "export namespace" in C++.
Solution: Skip over "inline" and "export" in any order. (Virginia Senioria,
closes vim/vim#12134, closes vim/vim#12133)
https://github.com/vim/vim/commit/99e4ab2a1e577ddb29030c09c308b67e16fd51c4
Co-authored-by: Virginia Senioria <91khr@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_cindent.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/old/testdir/test_cindent.vim b/test/old/testdir/test_cindent.vim index ccc8168c09..d9702f57d2 100644 --- a/test/old/testdir/test_cindent.vim +++ b/test/old/testdir/test_cindent.vim @@ -4392,6 +4392,18 @@ func Test_cindent_47() inline/* test */namespace { 111111111111111111; } + export namespace { + 111111111111111111; + } + export inline namespace { + 111111111111111111; + } + export/* test */inline namespace { + 111111111111111111; + } + inline export namespace { + 111111111111111111; + } /* invalid namespaces use block indent */ namespace test test2 { @@ -4495,6 +4507,18 @@ func Test_cindent_47() inline/* test */namespace { 111111111111111111; } + export namespace { + 111111111111111111; + } + export inline namespace { + 111111111111111111; + } + export/* test */inline namespace { + 111111111111111111; + } + inline export namespace { + 111111111111111111; + } /* invalid namespaces use block indent */ namespace test test2 { |