Ken Takata wrote:

> 2019/7/17 Wed 5:04:31 UTC+9 Bram Moolenaar wrote:
> > Patch 8.1.1705
> > Problem:    Using ~{} for a literal dict is not nice.
> > Solution:   Use #{} instead.
> > Files:          runtime/doc/eval.txt runtime/doc/popup.txt, src/eval.c,
> >             src/testdir/test_listdict.vim src/testdir/test_popupwin.vim
> 
> Thank you for adopting my idea.

Hopefully it stays longer than a day this time :-).

> BTW, the following changes are also needed.
> 
> --- a/src/dict.c
> +++ b/src/dict.c
> @@ -709,7 +709,7 @@ dict2string(typval_T *tv, int copyID, in
>  }
>  
>  /*
> - * Get the key for *{key: val} into "tv" and advance "arg".
> + * Get the key for #{key: val} into "tv" and advance "arg".
>   * Return FAIL when there is no valid key.
>   */
>      static int
> @@ -731,7 +731,7 @@ get_literal_key(char_u **arg, typval_T *
>  
>  /*
>   * Allocate a variable for a Dictionary and fill it from "*arg".
> - * "literal" is TRUE for *{key: val}
> + * "literal" is TRUE for #{key: val}
>   * Return OK or FAIL.  Returns NOTDONE for {expr}.
>   */
>      int

I'll fix that.

-- 
Every person is responsible for the choices he makes.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201907171056.x6HAuamb029802%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui