aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-07 00:45:05 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-07 00:56:38 -0400
commit20fc7ef161f3c40b957ba81a751af4639cce7776 (patch)
treef6297b64b8ce9c3d6f51ec71caf8592e848ca173 /runtime
parentd109a331446a998671bf54655df99238e2f1b093 (diff)
downloadrneovim-20fc7ef161f3c40b957ba81a751af4639cce7776.tar.gz
rneovim-20fc7ef161f3c40b957ba81a751af4639cce7776.tar.bz2
rneovim-20fc7ef161f3c40b957ba81a751af4639cce7776.zip
vim-patch:8.1.1692: using *{} for literal dict is not backwards compatible
Problem: Using *{} for literal dict is not backwards compatible. (Yasuhiro Matsumoto) Solution: Use ~{} instead. https://github.com/vim/vim/commit/b8be54dcc517c9d57b62409945b7d4b90b6c3071
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index e8c9233a1a..5b4c202215 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -40,7 +40,7 @@ Dictionary An associative, unordered array: Each entry has a key and a
value. |Dictionary|
Examples:
{'blue': "#0000ff", 'red': "#ff0000"}
- *{blue: "#0000ff", red: "#ff0000"}
+ ~{blue: "#0000ff", red: "#ff0000"}
The Number and String types are converted automatically, depending on how they
are used.
@@ -441,10 +441,10 @@ entry. Note that the String '04' and the Number 04 are different, since the
Number will be converted to the String '4'. The empty string can also be used
as a key.
*literal-Dict*
-To avoid having to put quotes around every key the *{} form can be used. This
+To avoid having to put quotes around every key the ~{} form can be used. This
does require the key to consist only of ASCII letters, digits, '-' and '_'.
Example: >
- let mydict = *{zero: 0, one_key: 1, two-key: 2, 333: 3}
+ let mydict = ~{zero: 0, one_key: 1, two-key: 2, 333: 3}
Note that 333 here is the string "333". Empty keys are not possible here.
A value can be any expression. Using a Dictionary for a value creates a