patch 8.2.3347: check for legacy script is incomplete
Problem: Check for legacy script is incomplete. (Naohiro Ono)
Solution: Also check the :legacy modifier. Use for string concatenation
with "." and others (issue #8756)
diff --git a/src/errors.h b/src/errors.h
index 3b15d10..3468ab7 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -650,3 +650,5 @@
INIT(= N_("E1232: Argument of exists_compiled() must be a literal string"));
EXTERN char e_exists_compiled_can_only_be_used_in_def_function[]
INIT(= N_("E1233: exists_compiled() can only be used in a :def function"));
+EXTERN char e_legacy_must_be_followed_by_command[]
+ INIT(= N_("E1234: legacy must be followed by a command"));