diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-16 22:04:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-16 22:04:02 +0200 |
commit | 4c6d90458baae843463f930fdc3fe4a7a2191d27 (patch) | |
tree | 4099cc5627c379a1d957eaba841024658f6ecfab /src/eval.c | |
parent | 69a5b867940d25f68a782de5c1165d65b51fcafa (diff) | |
download | vim-git-4c6d90458baae843463f930fdc3fe4a7a2191d27.tar.gz |
patch 8.1.1705: using ~{} for a literal dict is not nicev8.1.1705
Problem: Using ~{} for a literal dict is not nice.
Solution: Use #{} instead.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/eval.c b/src/eval.c index 1d290bcbf..8e9d01308 100644 --- a/src/eval.c +++ b/src/eval.c @@ -4392,7 +4392,7 @@ eval6( * (expression) nested expression * [expr, expr] List * {key: val, key: val} Dictionary - * ~{key: val, key: val} Dictionary with literal keys + * #{key: val, key: val} Dictionary with literal keys * * Also handle: * ! in front logical NOT @@ -4577,9 +4577,9 @@ eval7( break; /* - * Dictionary: ~{key: val, key: val} + * Dictionary: #{key: val, key: val} */ - case '~': if ((*arg)[1] == '{') + case '#': if ((*arg)[1] == '{') { ++*arg; ret = dict_get_tv(arg, rettv, evaluate, TRUE); @@ -7963,8 +7963,7 @@ find_var_ht(char_u *name, char_u **varname) *varname = name + 2; if (*name == 'g') /* global variable */ return &globvarht; - /* There must be no ':' or '#' in the rest of the name, unless g: is used - */ + // There must be no ':' or '#' in the rest of the name, unless g: is used if (vim_strchr(name + 2, ':') != NULL || vim_strchr(name + 2, AUTOLOAD_CHAR) != NULL) return NULL; |