Problem: Vim9: error message when script line starts with "[{".
Solution: Do not give an error for checking for end of list.
if (**arg != '}')
{
- semsg(_(e_missing_dict_end), *arg);
+ if (evalarg != NULL)
+ semsg(_(e_missing_dict_end), *arg);
failret:
if (d != NULL)
dict_free(d);
# comment 6
END
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
if has('channel')
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2393,
/**/
2392,
/**/