Mercurial > vim
diff src/testdir/test_syntax.vim @ 22928:de6c242ec236 v8.2.2011
patch 8.2.2011: "syn sync" reports a very large number
Commit: https://github.com/vim/vim/commit/9950280d377a5c0706d141017fcef9cad598b8b0
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 18 16:53:23 2020 +0100
patch 8.2.2011: "syn sync" reports a very large number
Problem: "syn sync" reports a very large number.
Solution: Use "at the first line".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 18 Nov 2020 17:00:04 +0100 |
parents | 595ea7f099cd |
children | 6616bf17dc94 |
line wrap: on
line diff
--- a/src/testdir/test_syntax.vim +++ b/src/testdir/test_syntax.vim @@ -316,6 +316,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 @@ -735,6 +737,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)')