diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-20 22:50:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-20 22:50:47 +0200 |
commit | 6797966dfc0219313886be55767e53d5a388b5c5 (patch) | |
tree | 251b9958824d03269e599f8f35db3c38f03d7416 /src/globals.h | |
parent | 0cb5bcf5836de83f7d64fb01d3ce708caacaf66c (diff) |
patch 8.2.1024: Vim9: no error for using "let g:var = val"v8.2.1024
Problem: Vim9: no error for using "let g:var = val".
Solution: Add an error.
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index 8cc93857d7..b6356a3600 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1788,6 +1788,7 @@ EXTERN char e_no_white_before[] INIT(= N_("E1068: No white space allowed before EXTERN char e_lock_unlock[] INIT(= N_("E940: Cannot lock or unlock variable %s")); EXTERN char e_const_req_value[] INIT(= N_("E1021: const requires a value")); EXTERN char e_type_req[] INIT(= N_("E1022: type or initialization required")); +EXTERN char e_declare_global[] INIT(= N_("E1016: Cannot declare a global variable: %s")); #endif #if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) EXTERN char e_alloc_color[] INIT(= N_("E254: Cannot allocate color %s")); |