patch 9.1.1588: Vim9: cannot split dict inside command block
Problem: Vim9: cannot split dict inside command block
(lacygoill)
Solution: Remove the current restriction (Yegappan Lakshmanan).
fixes: #17841
closes: #17845
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
0bda7830ac
commit
a566a78029
@ -1075,12 +1075,12 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
|
||||
had_comma = **arg == ',';
|
||||
if (had_comma)
|
||||
{
|
||||
if (vim9script && (*arg)[1] != NUL && !VIM_ISWHITE((*arg)[1]))
|
||||
if (vim9script && !IS_WHITE_NL_OR_NUL((*arg)[1]))
|
||||
{
|
||||
semsg(_(e_white_space_required_after_str_str), ",", *arg);
|
||||
goto failret;
|
||||
}
|
||||
*arg = skipwhite(*arg + 1);
|
||||
*arg = skipwhite_and_nl(*arg + 1);
|
||||
}
|
||||
|
||||
// the "}" can be on the next line
|
||||
|
||||
Reference in New Issue
Block a user