summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index e3a3592c8..df5b8427d 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -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!