Patch 8.2.1889
Problem: Vim9: errornous error for missing white space after {}.
Solution: Don't skip over white space after {}. (issue #7167)
Files: src/dict.c, src/testdir/test_vim9_expr.vim
*** ../vim-8.2.1888/src/dict.c 2020-10-18 18:03:13.629155053 +0200
--- src/dict.c 2020-10-22 18:59:17.726700613 +0200
***************
*** 950,956 ****
return FAIL;
}
! *arg = skipwhite(*arg + 1);
if (evaluate)
rettv_dict_set(rettv, d);
--- 950,956 ----
return FAIL;
}
! *arg = *arg + 1;
if (evaluate)
rettv_dict_set(rettv, d);
*** ../vim-8.2.1888/src/testdir/test_vim9_expr.vim 2020-10-19 21:45:03.747157645 +0200
--- src/testdir/test_vim9_expr.vim 2020-10-22 18:58:57.806770747 +0200
***************
*** 1126,1131 ****
--- 1126,1137 ----
lines =<< trim END
vim9script
+ echo {} - 22
+ END
+ CheckScriptFailure(lines, 'E731:', 2)
+
+ lines =<< trim END
+ vim9script
echo 'abc' is? 'abc'
END
CheckScriptFailure(lines, 'E15:', 2)
*** ../vim-8.2.1888/src/version.c 2020-10-22 18:23:34.429289412 +0200
--- src/version.c 2020-10-22 18:59:40.298621601 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1889,
/**/
--
hundred-and-one symptoms of being an internet addict:
111. You and your friends get together regularly on IRC, even though
all of you live in the same street.
/// 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 ///