Patch 8.2.2393
Problem: Vim9: error message when script line starts with "[{".
Solution: Do not give an error for checking for end of list.
Files: src/dict.c, src/testdir/test_vim9_script.vim
*** ../vim-8.2.2392/src/dict.c 2021-01-02 15:41:00.189079039 +0100
--- src/dict.c 2021-01-22 21:54:59.370776863 +0100
***************
*** 1032,1038 ****
if (**arg != '}')
{
! semsg(_(e_missing_dict_end), *arg);
failret:
if (d != NULL)
dict_free(d);
--- 1032,1039 ----
if (**arg != '}')
{
! if (evalarg != NULL)
! semsg(_(e_missing_dict_end), *arg);
failret:
if (d != NULL)
dict_free(d);
*** ../vim-8.2.2392/src/testdir/test_vim9_script.vim 2021-01-17 20:23:31.303042029 +0100
--- src/testdir/test_vim9_script.vim 2021-01-22 22:05:06.576835529 +0100
***************
*** 815,820 ****
--- 815,826 ----
# comment 6
END
assert_equal(['# comment 1', 'two', '# comment 3', '', 'five', '# comment 6'], lines)
+
+ lines =<< trim END
+ [{
+ a: 0}]->string()->assert_equal("[{'a': 0}]")
+ END
+ CheckDefAndScriptSuccess(lines)
enddef
if has('channel')
*** ../vim-8.2.2392/src/version.c 2021-01-22 20:54:30.934838333 +0100
--- src/version.c 2021-01-22 21:55:52.898591386 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2393,
/**/
--
Your mouse has moved. Windows must be restarted for the change
to take effect. Reboot now?
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///