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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202101222107.10ML7LhZ2313185%40masaka.moolenaar.net.

Raspunde prin e-mail lui