From 7a4b8980ea5ecaea061caae7816ea62cc4940011 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 8 Jul 2020 17:36:21 +0200 Subject: patch 8.2.1155: Vim9: cannot handle line break inside lambda Problem: Vim9: cannot handle line break inside lambda. Solution: Pass the compilation context through. (closes #6407, closes #6409) --- src/structs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/structs.h') diff --git a/src/structs.h b/src/structs.h index 5c606d883..4ae94fd04 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1765,6 +1765,9 @@ typedef struct { char_u *(*eval_getline)(int, void *, int, int); void *eval_cookie; // argument for eval_getline() + // used when compiling a :def function, NULL otherwise + cctx_T *eval_cctx; + // Used to collect lines while parsing them, so that they can be // concatenated later. Used when "eval_ga.ga_itemsize" is not zero. // "eval_ga.ga_data" is a list of pointers to lines. -- cgit v1.2.1