mirror of
https://github.com/vim/vim.git
synced 2026-05-24 19:16:53 +02:00
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 <h.east.727@gmail.com> Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
29b5938d79
commit
1ec32291c7
@@ -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')
|
||||
|
||||
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
47,
|
||||
/**/
|
||||
46,
|
||||
/**/
|
||||
|
||||
@@ -1392,7 +1392,6 @@ compile_call(
|
||||
else
|
||||
*arg += varlen + 1;
|
||||
|
||||
*arg = skipwhite(*arg);
|
||||
if (compile_arguments(arg, cctx, &argcount, special_fn) == FAIL)
|
||||
goto theend;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user