comparison src/testdir/test_vim9_script.vim @ 23703:6bfb302d8392 v8.2.2393

patch 8.2.2393: Vim9: error message when script line starts with "[{" Commit: https://github.com/vim/vim/commit/4bce26bb70144633713e7e8f149ba99cac511336 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 22 22:06:56 2021 +0100 patch 8.2.2393: Vim9: error message when script line starts with "[{" Problem: Vim9: error message when script line starts with "[{". Solution: Do not give an error for checking for end of list.
author Bram Moolenaar <Bram@vim.org>
date Fri, 22 Jan 2021 22:15:04 +0100
parents c8f26523d7d7
children 14e92f4c98c9
comparison
equal deleted inserted replaced
23702:48f0d00b5e46 23703:6bfb302d8392
813 813
814 five 814 five
815 # comment 6 815 # comment 6
816 END 816 END
817 assert_equal(['# comment 1', 'two', '# comment 3', '', 'five', '# comment 6'], lines) 817 assert_equal(['# comment 1', 'two', '# comment 3', '', 'five', '# comment 6'], lines)
818
819 lines =<< trim END
820 [{
821 a: 0}]->string()->assert_equal("[{'a': 0}]")
822 END
823 CheckDefAndScriptSuccess(lines)
818 enddef 824 enddef
819 825
820 if has('channel') 826 if has('channel')
821 let someJob = test_null_job() 827 let someJob = test_null_job()
822 828