diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-02 01:37:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 01:37:05 -0500 |
commit | 6224ec3d4a672a9beb7522a34e61fa3b335bf070 (patch) | |
tree | ffa272383fa6ad9a6deb7dc3b76ec14103a50a40 /src/nvim/testdir | |
parent | 90f3a8ba291fb0583ab6b0bd33129fdd45df1dab (diff) | |
parent | 4b65e4aeab16c1700a3c01a643e439a5000d932e (diff) | |
download | rneovim-6224ec3d4a672a9beb7522a34e61fa3b335bf070.tar.gz rneovim-6224ec3d4a672a9beb7522a34e61fa3b335bf070.tar.bz2 rneovim-6224ec3d4a672a9beb7522a34e61fa3b335bf070.zip |
Merge pull request #13204 from janlazo/vim-8.2.1938
vim-patch:8.1.{2030,2063},8.2.{864,1086,1938}
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_cindent.vim | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cindent.vim b/src/nvim/testdir/test_cindent.vim index debc9da46d..b6c2d1467e 100644 --- a/src/nvim/testdir/test_cindent.vim +++ b/src/nvim/testdir/test_cindent.vim @@ -127,4 +127,40 @@ func Test_cindent_case() bwipe! endfunc +func Test_cindent_pragma() + new + setl cindent ts=4 sw=4 + setl cino=Ps + + let code =<< trim [CODE] + { + #pragma omp parallel + { + #pragma omp task + foo(); + # pragma omp taskwait + } + } + [CODE] + + call append(0, code) + normal gg + normal =G + + let expected =<< trim [CODE] + { + #pragma omp parallel + { + #pragma omp task + foo(); + # pragma omp taskwait + } + } + + [CODE] + + call assert_equal(expected, getline(1, '$')) + enew! | close +endfunc + " vim: shiftwidth=2 sts=2 expandtab |