summaryrefslogtreecommitdiff
path: root/src/errors.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-12 19:52:25 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-12 19:52:25 +0000
commita749a42ed25534c88c636e5ab6603f1f97b857a4 (patch)
tree2458c780205a1f80efd0e579ed2f75346a4d2085 /src/errors.h
parent6e28703a8e41f775f64e442c5d11ce1ff599aa3f (diff)
downloadvim-git-a749a42ed25534c88c636e5ab6603f1f97b857a4.tar.gz
patch 8.2.4360: Vim9: allowing use of "s:" leads to inconsistenciesv8.2.4360
Problem: Vim9: allowing use of "s:" leads to inconsistencies. Solution: Disallow using "s:" in Vim9 script at the script level.
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/errors.h b/src/errors.h
index c66d26d8d..ef9e08346 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -2828,7 +2828,7 @@ EXTERN char e_unknown_error_while_executing_str[]
INIT(= N_("E1099: Unknown error while executing %s"));
EXTERN char e_command_not_supported_in_vim9_script_missing_var_str[]
INIT(= N_("E1100: Command not supported in Vim9 script (missing :var?): %s"));
-EXTERN char e_cannot_declare_script_variable_in_function[]
+EXTERN char e_cannot_declare_script_variable_in_function_str[]
INIT(= N_("E1101: Cannot declare a script variable in a function: %s"));
EXTERN char e_lambda_function_not_found_str[]
INIT(= N_("E1102: Lambda function not found: %s"));
@@ -3232,4 +3232,6 @@ EXTERN char e_critical_error_in_python3_initialization_check_your_installation[]
#ifdef FEAT_EVAL
EXTERN char e_function_name_must_start_with_capital_str[]
INIT(= N_("E1267: Function name must start with a capital: %s"));
+EXTERN char e_cannot_use_s_colon_in_vim9_script_str[]
+ INIT(= N_("E1268: Cannot use s: in Vim9 script: %s"));
#endif