forked from aniani/vim
patch 8.2.4930: interpolated string expression requires escaping
Problem: Interpolated string expression requires escaping. Solution: Do not require escaping in the expression.
This commit is contained in:
@@ -19,13 +19,13 @@ int ga_copy_strings(garray_T *from, garray_T *to);
|
||||
void ga_init(garray_T *gap);
|
||||
void ga_init2(garray_T *gap, size_t itemsize, int growsize);
|
||||
int ga_grow(garray_T *gap, int n);
|
||||
int ga_grow_id(garray_T *gap, int n, alloc_id_T id UNUSED);
|
||||
int ga_grow_id(garray_T *gap, int n, alloc_id_T id);
|
||||
int ga_grow_inner(garray_T *gap, int n);
|
||||
char_u *ga_concat_strings(garray_T *gap, char *sep);
|
||||
int ga_copy_string(garray_T *gap, char_u *p);
|
||||
int ga_add_string(garray_T *gap, char_u *p);
|
||||
void ga_concat(garray_T *gap, char_u *s);
|
||||
void ga_concat_len(garray_T *gap, char_u *s, size_t len);
|
||||
void ga_append(garray_T *gap, int c);
|
||||
int ga_append(garray_T *gap, int c);
|
||||
void append_ga_line(garray_T *gap);
|
||||
/* vim: set ft=c : */
|
||||
|
||||
@@ -13,6 +13,8 @@ list_T *eval_spell_expr(char_u *badword, char_u *expr);
|
||||
int get_spellword(list_T *list, char_u **pp);
|
||||
void prepare_vimvar(int idx, typval_T *save_tv);
|
||||
void restore_vimvar(int idx, typval_T *save_tv);
|
||||
char_u *eval_one_expr_in_str(char_u *p, garray_T *gap);
|
||||
char_u *eval_all_expr_in_str(char_u *str);
|
||||
list_T *heredoc_get(exarg_T *eap, char_u *cmd, int script_get, int vim9compile);
|
||||
void ex_var(exarg_T *eap);
|
||||
void ex_let(exarg_T *eap);
|
||||
@@ -105,6 +107,4 @@ void set_callback(callback_T *dest, callback_T *src);
|
||||
void copy_callback(callback_T *dest, callback_T *src);
|
||||
void expand_autload_callback(callback_T *cb);
|
||||
void free_callback(callback_T *callback);
|
||||
char_u *eval_all_expr_in_str(char_u *str);
|
||||
|
||||
/* vim: set ft=c : */
|
||||
|
||||
@@ -68,11 +68,11 @@ int tv_islocked(typval_T *tv);
|
||||
int tv_equal(typval_T *tv1, typval_T *tv2, int ic, int recursive);
|
||||
int eval_option(char_u **arg, typval_T *rettv, int evaluate);
|
||||
int eval_number(char_u **arg, typval_T *rettv, int evaluate, int want_string);
|
||||
int eval_string(char_u **arg, typval_T *rettv, int evaluate);
|
||||
int eval_lit_string(char_u **arg, typval_T *rettv, int evaluate);
|
||||
int eval_string(char_u **arg, typval_T *rettv, int evaluate, int interpolate);
|
||||
int eval_lit_string(char_u **arg, typval_T *rettv, int evaluate, int interpolate);
|
||||
int eval_interp_string(char_u **arg, typval_T *rettv, int evaluate);
|
||||
char_u *tv2string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
|
||||
int eval_env_var(char_u **arg, typval_T *rettv, int evaluate);
|
||||
int eval_interp_string(char_u **arg, typval_T *rettv, int evaluate);
|
||||
linenr_T tv_get_lnum(typval_T *argvars);
|
||||
linenr_T tv_get_lnum_buf(typval_T *argvars, buf_T *buf);
|
||||
buf_T *tv_get_buf(typval_T *tv, int curtab_only);
|
||||
|
||||
@@ -16,6 +16,7 @@ int may_get_next_line(char_u *whitep, char_u **arg, cctx_T *cctx);
|
||||
int may_get_next_line_error(char_u *whitep, char_u **arg, cctx_T *cctx);
|
||||
void fill_exarg_from_cctx(exarg_T *eap, cctx_T *cctx);
|
||||
int func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type);
|
||||
char_u *compile_one_expr_in_str(char_u *p, cctx_T *cctx);
|
||||
int compile_all_expr_in_str(char_u *str, int evalstr, cctx_T *cctx);
|
||||
int assignment_len(char_u *p, int *heredoc);
|
||||
void vim9_declare_error(char_u *name);
|
||||
|
||||
Reference in New Issue
Block a user