patch 9.2.0047: Vim9: Comment parsing error with lambda

Commit: 
https://github.com/vim/vim/commit/1ec32291c7b9b8d5d0578bb92bd01bebccdb2b8b
Author: Hirohito Higashi <[email protected]>
Date:   Tue Feb 24 20:56:06 2026 +0000

    patch 9.2.0047: Vim9: Comment parsing error with lambda
    
    Problem:  Vim9: Comment parsing error with lambda (Mao-Yining)
    Solution: Drop the skipwhite() (Hirohito Higashi)
    
    fixes:  #19484
    closes: #19487
    
    Signed-off-by: Hirohito Higashi <[email protected]>
    Signed-off-by: Yegappan Lakshmanan <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim
index 7cdf276e0..343c2f777 100644
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -1922,6 +1922,18 @@ def MyDefVarargs(one: string, two = 'foo', ...rest: 
list<string>): string
   return res
 enddef
 
+def Test_call_def_comments()
+  var lines =<< trim END
+      def Func(n: number)
+        echo n
+      enddef
+      Func( # comment
+        1
+        )
+  END
+  v9.CheckSourceDefSuccess(lines)
+enddef
+
 def Test_call_def_varargs()
   assert_fails('g:MyDefVarargs()', 'E119:', '', 1, 'Test_call_def_varargs')
   g:MyDefVarargs('one')->assert_equal('one,foo')
diff --git a/src/version.c b/src/version.c
index 099a5fd0e..ceab87616 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    47,
 /**/
     46,
 /**/
diff --git a/src/vim9expr.c b/src/vim9expr.c
index ebab9ec13..89219996e 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -1392,7 +1392,6 @@ compile_call(
     else
        *arg += varlen + 1;
 
-    *arg = skipwhite(*arg);
     if (compile_arguments(arg, cctx, &argcount, special_fn) == FAIL)
        goto theend;
 

-- 
-- 
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 visit 
https://groups.google.com/d/msgid/vim_dev/E1vuzVk-00BM6Q-VB%40256bit.org.

Raspunde prin e-mail lui