Problem: Error message contains random characters.
Solution: Pass the right pointer to error_white_both(). (closes #8272,
closes #8263)
*/
if (evaluate && vim9script && !IS_WHITE_OR_NUL((*arg)[oplen]))
{
- error_white_both(p, oplen);
+ error_white_both(*arg, oplen);
clear_tv(rettv);
return FAIL;
}
lines =<< trim END
echo 'a'.. 'b'
END
- CheckDefAndScriptFailure(lines, 'E1004:', 1)
+ CheckDefAndScriptFailure(lines, 'E1004: White space required before and after ''..'' at ".. ''b''"', 1)
+
+ lines =<< trim END
+ echo 'a'
+ ..'b'
+ # comment
+ END
+ CheckDefAndScriptFailure(lines, 'E1004: White space required before and after ''..'' at "..''b''"', 2)
# check invalid string concatenation
lines =<< trim END
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2892,
/**/
2891,
/**/