Mercurial > vim
comparison src/errors.h @ 21909:a211bca98bc3 v8.2.1504
patch 8.2.1504: Vim9: white space checks are only done for a :def function
Commit: https://github.com/vim/vim/commit/7cb6fc29d067ed97c0b0c1d2d5767125ef9ae1ab
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 21 22:36:47 2020 +0200
patch 8.2.1504: Vim9: white space checks are only done for a :def function
Problem: Vim9: white space checks are only done for a :def function.
Solution: Also do checks at the script level. Adjust the name of a few
error messages.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 21 Aug 2020 22:45:03 +0200 |
parents | e3f9528bddda |
children | 9fc27a955f00 |
comparison
equal
deleted
inserted
replaced
21908:9f0b9a678704 | 21909:a211bca98bc3 |
---|---|
31 INIT(= N_("E1001: variable not found: %s")); | 31 INIT(= N_("E1001: variable not found: %s")); |
32 EXTERN char e_syntax_error_at_str[] | 32 EXTERN char e_syntax_error_at_str[] |
33 INIT(= N_("E1002: Syntax error at %s")); | 33 INIT(= N_("E1002: Syntax error at %s")); |
34 EXTERN char e_missing_return_value[] | 34 EXTERN char e_missing_return_value[] |
35 INIT(= N_("E1003: Missing return value")); | 35 INIT(= N_("E1003: Missing return value")); |
36 EXTERN char e_white_space_required_before_and_after[] | 36 EXTERN char e_white_space_required_before_and_after_str[] |
37 INIT(= N_("E1004: white space required before and after '%s'")); | 37 INIT(= N_("E1004: white space required before and after '%s'")); |
38 EXTERN char e_too_many_argument_types[] | 38 EXTERN char e_too_many_argument_types[] |
39 INIT(= N_("E1005: Too many argument types")); | 39 INIT(= N_("E1005: Too many argument types")); |
40 EXTERN char e_str_is_used_as_argument[] | 40 EXTERN char e_str_is_used_as_argument[] |
41 INIT(= N_("E1006: %s is used as an argument")); | 41 INIT(= N_("E1006: %s is used as an argument")); |
154 INIT(= N_("E1062: Cannot index a Number")); | 154 INIT(= N_("E1062: Cannot index a Number")); |
155 EXTERN char e_type_mismatch_for_v_variable[] | 155 EXTERN char e_type_mismatch_for_v_variable[] |
156 INIT(= N_("E1063: type mismatch for v: variable")); | 156 INIT(= N_("E1063: type mismatch for v: variable")); |
157 // E1064 unused | 157 // E1064 unused |
158 // E1065 unused | 158 // E1065 unused |
159 EXTERN char e_cannot_declare_a_register[] | 159 EXTERN char e_cannot_declare_a_register_str[] |
160 INIT(= N_("E1066: Cannot declare a register: %s")); | 160 INIT(= N_("E1066: Cannot declare a register: %s")); |
161 EXTERN char e_separator_mismatch[] | 161 EXTERN char e_separator_mismatch_str[] |
162 INIT(= N_("E1067: Separator mismatch: %s")); | 162 INIT(= N_("E1067: Separator mismatch: %s")); |
163 EXTERN char e_no_white_space_allowed_before[] | 163 EXTERN char e_no_white_space_allowed_before_str[] |
164 INIT(= N_("E1068: No white space allowed before '%s'")); | 164 INIT(= N_("E1068: No white space allowed before '%s'")); |
165 EXTERN char e_white_space_required_after[] | 165 EXTERN char e_white_space_required_after_str[] |
166 INIT(= N_("E1069: white space required after '%s'")); | 166 INIT(= N_("E1069: white space required after '%s'")); |
167 EXTERN char e_missing_from[] | 167 EXTERN char e_missing_from[] |
168 INIT(= N_("E1070: Missing \"from\"")); | 168 INIT(= N_("E1070: Missing \"from\"")); |
169 EXTERN char e_invalid_string_after_from[] | 169 EXTERN char e_invalid_string_after_from[] |
170 INIT(= N_("E1071: Invalid string after \"from\"")); | 170 INIT(= N_("E1071: Invalid string after \"from\"")); |
171 EXTERN char e_cannot_compare_str_with_str[] | 171 EXTERN char e_cannot_compare_str_with_str[] |
172 INIT(= N_("E1072: Cannot compare %s with %s")); | 172 INIT(= N_("E1072: Cannot compare %s with %s")); |
173 EXTERN char e_name_already_defined[] | 173 EXTERN char e_name_already_defined_str[] |
174 INIT(= N_("E1073: name already defined: %s")); | 174 INIT(= N_("E1073: name already defined: %s")); |
175 EXTERN char e_no_white_space_allowed_after_dot[] | 175 EXTERN char e_no_white_space_allowed_after_dot[] |
176 INIT(= N_("E1074: no white space allowed after dot")); | 176 INIT(= N_("E1074: no white space allowed after dot")); |
177 EXTERN char e_namespace_not_supported_str[] | 177 EXTERN char e_namespace_not_supported_str[] |
178 INIT(= N_("E1075: Namespace not supported: %s")); | 178 INIT(= N_("E1075: Namespace not supported: %s")); |