Mercurial > vim
comparison src/dict.c @ 28813:3626ca6a20ea v8.2.4930
patch 8.2.4930: interpolated string expression requires escaping
Commit: https://github.com/vim/vim/commit/0abc2871c105882ed1c1effb9a7757fad8a395bd
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 10 13:24:30 2022 +0100
patch 8.2.4930: interpolated string expression requires escaping
Problem: Interpolated string expression requires escaping.
Solution: Do not require escaping in the expression.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 10 May 2022 14:30:04 +0200 |
parents | 62cc3b60493b |
children | 175eacde28b8 |
comparison
equal
deleted
inserted
replaced
28812:483371d05cd5 | 28813:3626ca6a20ea |
---|---|
864 char_u *end; | 864 char_u *end; |
865 typval_T rettv; | 865 typval_T rettv; |
866 | 866 |
867 if (**arg == '\'') | 867 if (**arg == '\'') |
868 { | 868 { |
869 if (eval_lit_string(arg, &rettv, TRUE) == FAIL) | 869 if (eval_lit_string(arg, &rettv, TRUE, FALSE) == FAIL) |
870 return NULL; | 870 return NULL; |
871 key = rettv.vval.v_string; | 871 key = rettv.vval.v_string; |
872 } | 872 } |
873 else if (**arg == '"') | 873 else if (**arg == '"') |
874 { | 874 { |
875 if (eval_string(arg, &rettv, TRUE) == FAIL) | 875 if (eval_string(arg, &rettv, TRUE, FALSE) == FAIL) |
876 return NULL; | 876 return NULL; |
877 key = rettv.vval.v_string; | 877 key = rettv.vval.v_string; |
878 } | 878 } |
879 else | 879 else |
880 { | 880 { |