aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
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 /src/nvim/eval.c
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 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index a4594d9ac8..a2490be355 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -3906,7 +3906,7 @@ static int eval6(char_u **arg, typval_T *rettv, int evaluate, int want_string)
// (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
@@ -4014,8 +4014,8 @@ static int eval7(
case '[': ret = get_list_tv(arg, rettv, evaluate);
break;
- // Dictionary: ~{key: val, key: val}
- case '~':
+ // Dictionary: #{key: val, key: val}
+ case '#':
if ((*arg)[1] == '{') {
(*arg)++;
ret = dict_get_tv(arg, rettv, evaluate, true);