patch 8.2.3346: Vim9: no error for using "." for concatenation after ":vim9cmd"
Problem: Vim9: no error for using "." for concatenation after ":vim9cmd".
(Naohiro Ono)
Solution: Check for Vim9 script syntax. (closes #8756)
diff --git a/src/eval.c b/src/eval.c
index 1fd4765..020f557 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -2860,7 +2860,8 @@
// "++" 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;