p = eval_next_non_blank(*arg, evalarg, &getnext);
if (getnext
&& ((rettv->v_type == VAR_DICT && *p == '.' && eval_isdictc(p[1]))
- || (p[0] == '-' && p[1] == '>'
- && (p[2] == '{' || ASCII_ISALPHA(p[2])))))
+ || (p[0] == '-' && p[1] == '>' && (p[2] == '{'
+ || ASCII_ISALPHA(in_vim9script() ? *skipwhite(p + 2)
+ : p[2])))))
{
*arg = eval_next_line(evalarg);
p = *arg;
var Join = (l) => join(l, 'x')
assert_equal('axb', ['a', 'b']->(Join)())
+
+ var sorted = [3, 1, 2]
+ -> sort()
+ assert_equal([1, 2, 3], sorted)
END
CheckDefAndScriptSuccess(lines)
enddef
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2964,
/**/
2963,
/**/
// Also if a following line starts with ".x".
if (next != NULL &&
((next[0] == '-' && next[1] == '>'
- && (next[2] == '{' || ASCII_ISALPHA(next[2])))
+ && (next[2] == '{'
+ || ASCII_ISALPHA(*skipwhite(next + 2))))
|| (next[0] == '.' && eval_isdictc(next[1]))))
{
next = next_line_from_context(cctx, TRUE);