mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2212: Vim9: lambda with => does not work at the script level
Problem: Vim9: lambda with => does not work at the script level. Solution: Make it work.
This commit is contained in:
@@ -3349,8 +3349,13 @@ eval7(
|
||||
|
||||
/*
|
||||
* nested expression: (expression).
|
||||
* lambda: (arg) => expr
|
||||
*/
|
||||
case '(': {
|
||||
case '(': ret = NOTDONE;
|
||||
if (in_vim9script())
|
||||
ret = get_lambda_tv(arg, rettv, TRUE, evalarg);
|
||||
if (ret == NOTDONE)
|
||||
{
|
||||
*arg = skipwhite_and_linebreak(*arg + 1, evalarg);
|
||||
ret = eval1(arg, rettv, evalarg); // recursive!
|
||||
|
||||
|
Reference in New Issue
Block a user