aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-07 01:00:11 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-07 01:03:48 -0400
commit4a6e201e37a9b08860cb823c528ea062002b7ebc (patch)
treef059d872c4ed15146902c5b9d6d501c27eaef2c8 /runtime
parent20fc7ef161f3c40b957ba81a751af4639cce7776 (diff)
downloadrneovim-4a6e201e37a9b08860cb823c528ea062002b7ebc.tar.gz
rneovim-4a6e201e37a9b08860cb823c528ea062002b7ebc.tar.bz2
rneovim-4a6e201e37a9b08860cb823c528ea062002b7ebc.zip
vim-patch:8.1.1705: using ~{} for a literal dict is not nice
Problem: Using ~{} for a literal dict is not nice. Solution: Use #{} instead. https://github.com/vim/vim/commit/4c6d90458baae843463f930fdc3fe4a7a2191d27
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 5b4c202215..0f848d0c27 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,11 +441,11 @@ 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}
-Note that 333 here is the string "333". Empty keys are not possible here.
+ 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 with #{}.
A value can be any expression. Using a Dictionary for a value creates a
nested Dictionary: >