diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-07-18 06:35:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 06:35:56 +0800 |
| commit | 8634ec3827a52a0339c98103c278973382e96267 (patch) | |
| tree | 7bfcb7a0cc38e6a2473f8c21ce58d4dd6b828276 /test/old/testdir/test_syntax.vim | |
| parent | e29f245a10821fcce454f7ede684aa0dd64efc33 (diff) | |
| parent | 457ab65ff3f7a7d3eecb45d4f3b48ab8a0295e52 (diff) | |
| download | rneovim-8634ec3827a52a0339c98103c278973382e96267.tar.gz rneovim-8634ec3827a52a0339c98103c278973382e96267.tar.bz2 rneovim-8634ec3827a52a0339c98103c278973382e96267.zip | |
Merge pull request #29774 from zeertzjq/vim-9.0.1257
vim-patch:9.0.{partial:0719,1257}
Diffstat (limited to 'test/old/testdir/test_syntax.vim')
| -rw-r--r-- | test/old/testdir/test_syntax.vim | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/test/old/testdir/test_syntax.vim b/test/old/testdir/test_syntax.vim index 8a24c4ae27..207efb6223 100644 --- a/test/old/testdir/test_syntax.vim +++ b/test/old/testdir/test_syntax.vim @@ -644,15 +644,16 @@ func Test_syntax_c() \ ' printf("Just an example piece of C code\n");', \ ' return 0x0ff;', \ '}', + \ "\t\t ", \ ' static void', \ 'myFunction(const double count, struct nothing, long there) {', - \ ' // 123: nothing to read here', - \ ' for (int i = 0; i < count; ++i) {', - \ ' break;', - \ ' }', - \ " Note: asdf", + \ "\t// 123: nothing to endif here", + \ "\tfor (int i = 0; i < count; ++i) {", + \ "\t break;", + \ "\t}", + \ "\tNote: asdf", \ '}', - \ ], 'Xtest.c') + \ ], 'Xtest.c', 'D') " This makes the default for 'background' use "dark", check that the " response to t_RB corrects it to "light". @@ -664,7 +665,6 @@ func Test_syntax_c() call StopVimInTerminal(buf) let $COLORFGBG = '' - call delete('Xtest.c') endfun " Test \z(...) along with \z1 @@ -698,10 +698,10 @@ func Test_syn_wrong_z_one() endfunc func Test_syntax_after_bufdo() - call writefile(['/* aaa comment */'], 'Xaaa.c') - call writefile(['/* bbb comment */'], 'Xbbb.c') - call writefile(['/* ccc comment */'], 'Xccc.c') - call writefile(['/* ddd comment */'], 'Xddd.c') + call writefile(['/* aaa comment */'], 'Xaaa.c', 'D') + call writefile(['/* bbb comment */'], 'Xbbb.c', 'D') + call writefile(['/* ccc comment */'], 'Xccc.c', 'D') + call writefile(['/* ddd comment */'], 'Xddd.c', 'D') let bnr = bufnr('%') new Xaaa.c @@ -729,10 +729,6 @@ func Test_syntax_after_bufdo() bwipe! Xccc.c bwipe! Xddd.c syntax off - call delete('Xaaa.c') - call delete('Xbbb.c') - call delete('Xccc.c') - call delete('Xddd.c') endfunc func Test_syntax_foldlevel() |