Mercurial > vim
diff src/structs.h @ 21208:09377fd59b2e v8.2.1155
patch 8.2.1155: Vim9: cannot handle line break inside lambda
Commit: https://github.com/vim/vim/commit/7a4b8980ea5ecaea061caae7816ea62cc4940011
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 8 17:36:21 2020 +0200
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 https://github.com/vim/vim/issues/6407, closes https://github.com/vim/vim/issues/6409)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 08 Jul 2020 17:45:06 +0200 |
parents | caab594592cc |
children | ad13736a1783 |
line wrap: on
line diff
--- 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.