diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-03 17:05:35 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-03 17:05:35 +0000 |
commit | 0e1574c4069ded47c170fcd7a47a0df66693a5f4 (patch) | |
tree | f266c5d17984eca34d287a3f04bc6584a425bafe /src/errors.h | |
parent | 28bf649a5732ffe5a47951b5e437b765cebc5b38 (diff) | |
download | vim-git-0e1574c4069ded47c170fcd7a47a0df66693a5f4.tar.gz |
patch 8.2.4500: Vim9: can declare a global variable on the command linev8.2.4500
Problem: Vim9: can declare a global variable on the command line.
Solution: Disallow declaring a variable on the command line. (closes #9881)
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/errors.h b/src/errors.h index 72c0d1284..5ac7b3f3f 100644 --- a/src/errors.h +++ b/src/errors.h @@ -2780,14 +2780,15 @@ EXTERN char e_no_white_space_allowed_after_dot[] INIT(= N_("E1074: No white space allowed after dot")); EXTERN char e_namespace_not_supported_str[] INIT(= N_("E1075: Namespace not supported: %s")); -#ifndef FEAT_FLOAT +# ifndef FEAT_FLOAT EXTERN char e_this_vim_is_not_compiled_with_float_support[] INIT(= N_("E1076: This Vim is not compiled with float support")); -#endif +# endif EXTERN char e_missing_argument_type_for_str[] INIT(= N_("E1077: Missing argument type for %s")); // E1078 unused -// E1079 unused +EXTERN char e_cannot_declare_variable_on_command_line[] + INIT(= N_("E1079: Cannot declare a variable on the command line")); EXTERN char e_invalid_assignment[] INIT(= N_("E1080: Invalid assignment")); EXTERN char e_cannot_unlet_str[] |