Problem: Vim9: no error for using "." for concatenation after ":vim9cmd".
(Naohiro Ono)
Solution: Check for Vim9 script syntax. (closes #8756)
// "++" and "--" on the next line are a separate command.
p = eval_next_non_blank(*arg, evalarg, &getnext);
op = *p;
- concat = op == '.' && (*(p + 1) == '.' || current_sctx.sc_version < 2);
+ concat = op == '.' && (*(p + 1) == '.'
+ || (current_sctx.sc_version < 2 && !vim9script));
if ((op != '+' && op != '-' && !concat) || p[1] == '='
|| (p[1] == '.' && p[2] == '='))
break;
END
CheckScriptSuccess(lines)
assert_fails('vim9cmd', 'E1164:')
+ assert_fails('vim9cmd echo "con" . "cat"', 'E15:')
lines =<< trim END
vim9script
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3346,
/**/
3345,
/**/