comparison src/scriptfile.c @ 20992:7ee565134d4a v8.2.1047

patch 8.2.1047: Vim9: script cannot use line continuation like :def function Commit: https://github.com/vim/vim/commit/5409f5d8c95007216ae1190565a7a8ee9ebd7100 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 24 18:37:35 2020 +0200 patch 8.2.1047: Vim9: script cannot use line continuation like :def function Problem: Vim9: script cannot use line continuation like in a :def function. Solution: Pass the getline function pointer to the eval() functions. Use it for addition and multiplication operators.
author Bram Moolenaar <Bram@vim.org>
date Wed, 24 Jun 2020 18:45:04 +0200
parents 0653b9b72091
children caab594592cc
comparison
equal deleted inserted replaced
20991:cf7644c0a791 20992:7ee565134d4a
1047 */ 1047 */
1048 int 1048 int
1049 source_level(void *cookie) 1049 source_level(void *cookie)
1050 { 1050 {
1051 return ((struct source_cookie *)cookie)->level; 1051 return ((struct source_cookie *)cookie)->level;
1052 }
1053
1054 /*
1055 * Return the readahead line.
1056 */
1057 char_u *
1058 source_nextline(void *cookie)
1059 {
1060 return ((struct source_cookie *)cookie)->nextline;
1052 } 1061 }
1053 #endif 1062 #endif
1054 1063
1055 #if (defined(MSWIN) && defined(FEAT_CSCOPE)) || defined(HAVE_FD_CLOEXEC) 1064 #if (defined(MSWIN) && defined(FEAT_CSCOPE)) || defined(HAVE_FD_CLOEXEC)
1056 # define USE_FOPEN_NOINH 1065 # define USE_FOPEN_NOINH