Patch 8.2.1723
Problem: Vim9: Variable argument name cannot start with underscore.
Solution: Use eval_isnamec1(). (closes #6988)
Files: src/userfunc.c, src/testdir/test_vim9_func.vim
*** ../vim-8.2.1722/src/userfunc.c 2020-09-20 22:03:54.241490283 +0200
--- src/userfunc.c 2020-09-21 21:58:04.994225735 +0200
***************
*** 211,217 ****
if (argtypes != NULL)
{
// ...name: list<type>
! if (!ASCII_ISALPHA(*p))
{
emsg(_(e_missing_name_after_dots));
break;
--- 211,217 ----
if (argtypes != NULL)
{
// ...name: list<type>
! if (!eval_isnamec1(*p))
{
emsg(_(e_missing_name_after_dots));
break;
*** ../vim-8.2.1722/src/testdir/test_vim9_func.vim 2020-09-20 22:03:54.241490283 +0200
--- src/testdir/test_vim9_func.vim 2020-09-21 22:02:04.884929862 +0200
***************
*** 374,379 ****
--- 374,388 ----
lines =<< trim END
vim9script
+ def Func(..._l: list<string>)
+ echo _l
+ enddef
+ Func('a', 'b', 'c')
+ END
+ CheckScriptSuccess(lines)
+
+ lines =<< trim END
+ vim9script
def Func(...l: list<string>)
echo l
enddef
*** ../vim-8.2.1722/src/version.c 2020-09-21 21:48:17.473692198 +0200
--- src/version.c 2020-09-21 22:00:27.153452880 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1723,
/**/
--
ARTHUR: What are you going to do. bleed on me?
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// 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 ///