summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-08 17:36:21 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-08 17:36:21 +0200
commit7a4b8980ea5ecaea061caae7816ea62cc4940011 (patch)
treebea3cf5b0a0fb38b3d28ca15222e1d0a1358df53 /src/structs.h
parentc620c055ce8505596a7208ba696a32b8a3be4f4b (diff)
patch 8.2.1155: Vim9: cannot handle line break inside lambdav8.2.1155
Problem: Vim9: cannot handle line break inside lambda. Solution: Pass the compilation context through. (closes #6407, closes #6409)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 5c606d8839..4ae94fd04e 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.