Mercurial > vim
diff src/testdir/test_eval_stuff.vim @ 14714:bdbb049c2aa8 v8.1.0369
patch 8.1.0369: continuation lines cannot contain comments
commit https://github.com/vim/vim/commit/67f8ab829911c7901c534ef2bf19cc34b622936f
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 11 22:37:29 2018 +0200
patch 8.1.0369: continuation lines cannot contain comments
Problem: Continuation lines cannot contain comments.
Solution: Support using "\ .
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 11 Sep 2018 22:45:07 +0200 |
parents | 4a1efd1a6018 |
children | 6344377dc7dc |
line wrap: on
line diff
--- a/src/testdir/test_eval_stuff.vim +++ b/src/testdir/test_eval_stuff.vim @@ -42,3 +42,14 @@ func Test_mkdir_p() call delete('Xfile') call delete('Xmkdir', 'rf') endfunc + +func Test_line_continuation() + let array = [5, + "\ ignore this + \ 6, + "\ more to ignore + "\ more moreto ignore + \ ] + "\ and some more + call assert_equal([5, 6], array) +endfunc