comparison src/proto/vim9compile.pro @ 28560:060fc3b69697 v8.2.4804

patch 8.2.4804: expression in heredoc doesn't work for compiled function Commit: https://github.com/vim/vim/commit/1fc6ea9bf3548b578676331f5eac1f7e0611c268 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Thu Apr 21 23:30:15 2022 +0100 patch 8.2.4804: expression in heredoc doesn't work for compiled function Problem: Expression in heredoc doesn't work for compiled function. Solution: Implement compiling the heredoc expressions. (Yegappan Lakshmanan, closes #10232)
author Bram Moolenaar <Bram@vim.org>
date Fri, 22 Apr 2022 00:45:04 +0200
parents bd1dcc605e58
children 723c7d940cba
comparison
equal deleted inserted replaced
28559:a9388feb437d 28560:060fc3b69697
14 char_u *next_line_from_context(cctx_T *cctx, int skip_comment); 14 char_u *next_line_from_context(cctx_T *cctx, int skip_comment);
15 int may_get_next_line(char_u *whitep, char_u **arg, cctx_T *cctx); 15 int may_get_next_line(char_u *whitep, char_u **arg, cctx_T *cctx);
16 int may_get_next_line_error(char_u *whitep, char_u **arg, cctx_T *cctx); 16 int may_get_next_line_error(char_u *whitep, char_u **arg, cctx_T *cctx);
17 void fill_exarg_from_cctx(exarg_T *eap, cctx_T *cctx); 17 void fill_exarg_from_cctx(exarg_T *eap, cctx_T *cctx);
18 int func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type); 18 int func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type);
19 int compile_heredoc_string(char_u *str, int evalstr, cctx_T *cctx);
19 int assignment_len(char_u *p, int *heredoc); 20 int assignment_len(char_u *p, int *heredoc);
20 void vim9_declare_error(char_u *name); 21 void vim9_declare_error(char_u *name);
21 int get_var_dest(char_u *name, assign_dest_T *dest, cmdidx_T cmdidx, int *option_scope, int *vimvaridx, type_T **type, cctx_T *cctx); 22 int get_var_dest(char_u *name, assign_dest_T *dest, cmdidx_T cmdidx, int *option_scope, int *vimvaridx, type_T **type, cctx_T *cctx);
22 int compile_lhs(char_u *var_start, lhs_T *lhs, cmdidx_T cmdidx, int heredoc, int has_cmd, int oplen, cctx_T *cctx); 23 int compile_lhs(char_u *var_start, lhs_T *lhs, cmdidx_T cmdidx, int heredoc, int has_cmd, int oplen, cctx_T *cctx);
23 int compile_assign_lhs(char_u *var_start, lhs_T *lhs, cmdidx_T cmdidx, int is_decl, int heredoc, int has_cmd, int oplen, cctx_T *cctx); 24 int compile_assign_lhs(char_u *var_start, lhs_T *lhs, cmdidx_T cmdidx, int is_decl, int heredoc, int has_cmd, int oplen, cctx_T *cctx);