Mercurial > vim
diff src/globals.h @ 20142:fe8d0a4344df v8.2.0626
patch 8.2.0626: Vim9: wrong syntax of function in Vim9 script
Commit: https://github.com/vim/vim/commit/f93c7fea084a99848d512ff2732041d4b41d93c8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 23 22:16:53 2020 +0200
patch 8.2.0626: Vim9: wrong syntax of function in Vim9 script
Problem: Vim9: wrong syntax of function in Vim9 script.
Solution: Give error for missing space. Implement :echomsg and :echoerr.
(closes #5670)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Apr 2020 22:30:03 +0200 |
parents | 252d2bb90394 |
children | 8d9229c4781a |
line wrap: on
line diff
--- a/src/globals.h +++ b/src/globals.h @@ -1750,6 +1750,10 @@ EXTERN char e_endif_without_if[] INIT(= EXTERN char e_continue[] INIT(= N_("E586: :continue without :while or :for")); EXTERN char e_break[] INIT(= N_("E587: :break without :while or :for")); EXTERN char e_nowhitespace[] INIT(= N_("E274: No white space allowed before parenthesis")); +EXTERN char e_white_both[] INIT(= N_("E1004: white space required before and after '%s'")); +EXTERN char e_white_after[] INIT(= N_("E1069: white space required after '%s'")); +EXTERN char e_no_white_before[] INIT(= N_("E1068: No white space allowed before '%s'")); + EXTERN char e_lock_unlock[] INIT(= N_("E940: Cannot lock or unlock variable %s")); #endif @@ -1819,6 +1823,8 @@ EXTERN proftime_T bevalexpr_due; #ifdef FEAT_EVAL EXTERN time_T time_for_testing INIT(= 0); +EXTERN int echo_attr INIT(= 0); // attributes used for ":echo" + // Abort conversion to string after a recursion error. EXTERN int did_echo_string_emsg INIT(= FALSE);