mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.1.1686: "*" of "*{" is recognized as multipy operator
Problem: "*" of "*{" is recognized as multipy operator. (Yasuhiro Matsumoto) Solution: Check for the "{".
This commit is contained in:
parent
a099da3572
commit
2898ebb44c
@ -4266,7 +4266,7 @@ eval6(
|
||||
for (;;)
|
||||
{
|
||||
op = **arg;
|
||||
if (op != '*' && op != '/' && op != '%')
|
||||
if ((op != '*' || (*arg)[1] == '{') && op != '/' && op != '%')
|
||||
break;
|
||||
|
||||
if (evaluate)
|
||||
|
@ -282,6 +282,7 @@ endfunc
|
||||
|
||||
func Test_dict_literal_keys()
|
||||
call assert_equal({'one': 1, 'two2': 2, '3three': 3, '44': 4}, *{one: 1, two2: 2, 3three: 3, 44: 4},)
|
||||
call assert_equal('2 3', trim(execute('echo 2 *{blue: 3}.blue')))
|
||||
endfunc
|
||||
|
||||
" Nasty: deepcopy() dict that refers to itself (fails when noref used)
|
||||
|
@ -777,6 +777,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1686,
|
||||
/**/
|
||||
1685,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user