mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 8.2.2393: Vim9: error message when script line starts with "[{"
Problem: Vim9: error message when script line starts with "[{". Solution: Do not give an error for checking for end of list.
This commit is contained in:
@@ -1032,7 +1032,8 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
|
|||||||
|
|
||||||
if (**arg != '}')
|
if (**arg != '}')
|
||||||
{
|
{
|
||||||
semsg(_(e_missing_dict_end), *arg);
|
if (evalarg != NULL)
|
||||||
|
semsg(_(e_missing_dict_end), *arg);
|
||||||
failret:
|
failret:
|
||||||
if (d != NULL)
|
if (d != NULL)
|
||||||
dict_free(d);
|
dict_free(d);
|
||||||
|
@@ -815,6 +815,12 @@ def Test_list_vimscript()
|
|||||||
# comment 6
|
# comment 6
|
||||||
END
|
END
|
||||||
assert_equal(['# comment 1', 'two', '# comment 3', '', 'five', '# comment 6'], lines)
|
assert_equal(['# comment 1', 'two', '# comment 3', '', 'five', '# comment 6'], lines)
|
||||||
|
|
||||||
|
lines =<< trim END
|
||||||
|
[{
|
||||||
|
a: 0}]->string()->assert_equal("[{'a': 0}]")
|
||||||
|
END
|
||||||
|
CheckDefAndScriptSuccess(lines)
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
if has('channel')
|
if has('channel')
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2393,
|
||||||
/**/
|
/**/
|
||||||
2392,
|
2392,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user