Mercurial > vim
comparison src/errors.h @ 27970:212c5894b8b1 v8.2.4510
patch 8.2.4510: Vim9: shortening commands leads to confusing script
Commit: https://github.com/vim/vim/commit/204852ae2adfdde10c656ca7f14e5b4207a69172
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 5 12:56:44 2022 +0000
patch 8.2.4510: Vim9: shortening commands leads to confusing script
Problem: Vim9: shortening commands leads to confusing script.
Solution: In Vim9 script require at least ":cont" for ":continue", "const"
instead of "cons", "break" instead of "brea", "catch" instead of
"cat", "else" instead of "el" "elseif" instead of "elsei" "endfor"
instead of "endfo" "endif" instead of "en" "endtry" instead of
"endt", "finally" instead of "fina", "throw" instead of "th",
"while" instead of "wh".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Mar 2022 14:00:03 +0100 |
parents | 40c6e5f849dc |
children | 442ca2007bec |
comparison
equal
deleted
inserted
replaced
27969:0e58183b329e | 27970:212c5894b8b1 |
---|---|
2759 EXTERN char e_type_mismatch_for_v_variable[] | 2759 EXTERN char e_type_mismatch_for_v_variable[] |
2760 INIT(= N_("E1063: Type mismatch for v: variable")); | 2760 INIT(= N_("E1063: Type mismatch for v: variable")); |
2761 #endif | 2761 #endif |
2762 EXTERN char e_yank_register_changed_while_using_it[] | 2762 EXTERN char e_yank_register_changed_while_using_it[] |
2763 INIT(= N_("E1064: Yank register changed while using it")); | 2763 INIT(= N_("E1064: Yank register changed while using it")); |
2764 #ifdef FEAT_EVAL | 2764 EXTERN char e_command_cannot_be_shortened[] |
2765 EXTERN char e_must_use_var_instead_of_va[] | 2765 INIT(= N_("E1065: Command cannot be shortened: %s")); |
2766 INIT(= N_("E1065: Must use :var instead of :va")); | 2766 #ifdef FEAT_EVAL |
2767 EXTERN char e_cannot_declare_a_register_str[] | 2767 EXTERN char e_cannot_declare_a_register_str[] |
2768 INIT(= N_("E1066: Cannot declare a register: %s")); | 2768 INIT(= N_("E1066: Cannot declare a register: %s")); |
2769 EXTERN char e_separator_mismatch_str[] | 2769 EXTERN char e_separator_mismatch_str[] |
2770 INIT(= N_("E1067: Separator mismatch: %s")); | 2770 INIT(= N_("E1067: Separator mismatch: %s")); |
2771 EXTERN char e_no_white_space_allowed_before_str_str[] | 2771 EXTERN char e_no_white_space_allowed_before_str_str[] |