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 -- [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/202009212003.08LK3C0d3481779%40masaka.moolenaar.net.

Raspunde prin e-mail lui