aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_syntax.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-19 23:34:13 -0500
committerGitHub <noreply@github.com>2020-11-19 23:34:13 -0500
commit480b04122e93826bdfc74fbeacab2d94b089420f (patch)
treed393c07c56912ad066be833b5240a692e46640c6 /src/nvim/testdir/test_syntax.vim
parentda4e7ed4e9a24e451294c1fe396936d8a8d1f739 (diff)
parentb0f967a06e6970df9dfa1803fd1cc72294d64dcd (diff)
downloadrneovim-480b04122e93826bdfc74fbeacab2d94b089420f.tar.gz
rneovim-480b04122e93826bdfc74fbeacab2d94b089420f.tar.bz2
rneovim-480b04122e93826bdfc74fbeacab2d94b089420f.zip
Merge pull request #13321 from seandewar/vim-8.2.2011
vim-patch:8.2.{2006,2011}
Diffstat (limited to 'src/nvim/testdir/test_syntax.vim')
-rw-r--r--src/nvim/testdir/test_syntax.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_syntax.vim b/src/nvim/testdir/test_syntax.vim
index 2617aa3945..4cf0e983b0 100644
--- a/src/nvim/testdir/test_syntax.vim
+++ b/src/nvim/testdir/test_syntax.vim
@@ -308,6 +308,8 @@ func Test_syntax_arg_skipped()
syn sync ccomment
endif
call assert_notmatch('on C-style comments', execute('syntax sync'))
+ syn sync fromstart
+ call assert_match('syncing starts at the first line', execute('syntax sync'))
syn clear
endfunc
@@ -669,6 +671,7 @@ func Test_syntax_foldlevel()
redir END
call assert_equal("\nsyntax foldlevel start", @c)
syn sync fromstart
+ call assert_match('from the first line$', execute('syn sync'))
let a = map(range(3,9), 'foldclosed(v:val)')
call assert_equal([3,3,3,3,3,3,3], a) " attached cascade folds together
let a = map(range(10,15), 'foldclosed(v:val)')