annotate src/errors.h @ 24614:07b3d21a8b4b v8.2.2846

patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void Commit: https://github.com/vim/vim/commit/68db996b621b98066fb7ab7028ed5c6aaa3954a8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 9 23:19:22 2021 +0200 patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void Problem: Vim9: "echo Func()" does not give an error for a function without a return value. Solution: Give an error. Be more specific about why a value is invalid.
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 May 2021 23:30:05 +0200
parents b3bd27751e09
children 08eced3add83
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21789
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 /* vi:set ts=8 sts=4 sw=4 noet:
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 *
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 * VIM - Vi IMproved by Bram Moolenaar
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 *
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 * Do ":help uganda" in Vim to read copying and usage conditions.
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 * Do ":help credits" in Vim to see a list of people who contributed.
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 */
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 /*
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 * Definition of error messages, sorted on error number.
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 */
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 #ifdef FEAT_EVAL
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
14 EXTERN char e_undefined_variable_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
15 INIT(= N_("E121: Undefined variable: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
16 EXTERN char e_undefined_variable_char_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
17 INIT(= N_("E121: Undefined variable: %c:%s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
18 #endif
23513
872239543313 patch 8.2.2299: Vim9: invalid memory access making error message flaky
Bram Moolenaar <Bram@vim.org>
parents: 23446
diff changeset
19 EXTERN char e_ambiguous_use_of_user_defined_command[]
872239543313 patch 8.2.2299: Vim9: invalid memory access making error message flaky
Bram Moolenaar <Bram@vim.org>
parents: 23446
diff changeset
20 INIT(= N_("E464: Ambiguous use of user-defined command"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
21 EXTERN char e_invalid_command[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
22 INIT(= N_("E476: Invalid command"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
23 #ifdef FEAT_EVAL
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
24 EXTERN char e_invalid_command_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
25 INIT(= N_("E476: Invalid command: %s"));
22975
a943b175586a patch 8.2.2034: Vim9: list unpack in for statement not compiled yet
Bram Moolenaar <Bram@vim.org>
parents: 22936
diff changeset
26 EXTERN char e_list_value_has_more_items_than_targets[]
a943b175586a patch 8.2.2034: Vim9: list unpack in for statement not compiled yet
Bram Moolenaar <Bram@vim.org>
parents: 22936
diff changeset
27 INIT(= N_("E710: List value has more items than targets"));
a943b175586a patch 8.2.2034: Vim9: list unpack in for statement not compiled yet
Bram Moolenaar <Bram@vim.org>
parents: 22936
diff changeset
28 EXTERN char e_list_value_does_not_have_enough_items[]
a943b175586a patch 8.2.2034: Vim9: list unpack in for statement not compiled yet
Bram Moolenaar <Bram@vim.org>
parents: 22936
diff changeset
29 INIT(= N_("E711: List value does not have enough items"));
21833
e3f9528bddda patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"
Bram Moolenaar <Bram@vim.org>
parents: 21831
diff changeset
30 EXTERN char e_cannot_slice_dictionary[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
31 INIT(= N_("E719: Cannot slice a Dictionary"));
22165
c512e6f57ff2 patch 8.2.1632: not checking the context of test_fails()
Bram Moolenaar <Bram@vim.org>
parents: 21975
diff changeset
32 EXTERN char e_assert_fails_second_arg[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
33 INIT(= N_("E856: \"assert_fails()\" second argument must be a string or a list with one or two strings"));
24614
07b3d21a8b4b patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void
Bram Moolenaar <Bram@vim.org>
parents: 24543
diff changeset
34 EXTERN char e_using_invalid_value_as_string_str[]
07b3d21a8b4b patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void
Bram Moolenaar <Bram@vim.org>
parents: 24543
diff changeset
35 INIT(= N_("E908: using an invalid value as a String: %s"));
21833
e3f9528bddda patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"
Bram Moolenaar <Bram@vim.org>
parents: 21831
diff changeset
36 EXTERN char e_cannot_index_special_variable[]
e3f9528bddda patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"
Bram Moolenaar <Bram@vim.org>
parents: 21831
diff changeset
37 INIT(= N_("E909: Cannot index a special variable"));
23390
9a5f12b36273 patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval feature
Bram Moolenaar <Bram@vim.org>
parents: 23362
diff changeset
38 #endif
9a5f12b36273 patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval feature
Bram Moolenaar <Bram@vim.org>
parents: 23362
diff changeset
39 EXTERN char e_command_not_supported_in_vim9_script_missing_var_str[]
9a5f12b36273 patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval feature
Bram Moolenaar <Bram@vim.org>
parents: 23362
diff changeset
40 INIT(= N_("E1100: Command not supported in Vim9 script (missing :var?): %s"));
9a5f12b36273 patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval feature
Bram Moolenaar <Bram@vim.org>
parents: 23362
diff changeset
41 #ifdef FEAT_EVAL
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
42 EXTERN char e_variable_not_found_str[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
43 INIT(= N_("E1001: Variable not found: %s"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
44 EXTERN char e_syntax_error_at_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
45 INIT(= N_("E1002: Syntax error at %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
46 EXTERN char e_missing_return_value[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
47 INIT(= N_("E1003: Missing return value"));
23446
b1dbbc81a011 patch 8.2.2266: Vim9: it can be hard to see where white space is missing
Bram Moolenaar <Bram@vim.org>
parents: 23442
diff changeset
48 EXTERN char e_white_space_required_before_and_after_str_at_str[]
b1dbbc81a011 patch 8.2.2266: Vim9: it can be hard to see where white space is missing
Bram Moolenaar <Bram@vim.org>
parents: 23442
diff changeset
49 INIT(= N_("E1004: White space required before and after '%s' at \"%s\""));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
50 EXTERN char e_too_many_argument_types[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
51 INIT(= N_("E1005: Too many argument types"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
52 EXTERN char e_str_is_used_as_argument[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
53 INIT(= N_("E1006: %s is used as an argument"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
54 EXTERN char e_mandatory_argument_after_optional_argument[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
55 INIT(= N_("E1007: Mandatory argument after optional argument"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
56 EXTERN char e_missing_type[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
57 INIT(= N_("E1008: Missing <type>"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
58 EXTERN char e_missing_gt_after_type[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
59 INIT(= N_("E1009: Missing > after type"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
60 EXTERN char e_type_not_recognized_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
61 INIT(= N_("E1010: Type not recognized: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
62 EXTERN char e_name_too_long_str[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
63 INIT(= N_("E1011: Name too long: %s"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
64 EXTERN char e_type_mismatch_expected_str_but_got_str[]
22284
6b385c2b9ff5 patch 8.2.1691: Vim9: list<any> is not accepted where list<number> is expected
Bram Moolenaar <Bram@vim.org>
parents: 22272
diff changeset
65 INIT(= N_("E1012: Type mismatch; expected %s but got %s"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
66 EXTERN char e_argument_nr_type_mismatch_expected_str_but_got_str[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
67 INIT(= N_("E1013: Argument %d: type mismatch, expected %s but got %s"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
68 EXTERN char e_invalid_key_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
69 INIT(= N_("E1014: Invalid key: %s"));
23183
4d5d12138b36 patch 8.2.2137: Vim9: :echo and :execute give error for empty argument
Bram Moolenaar <Bram@vim.org>
parents: 23175
diff changeset
70 EXTERN char e_name_expected_str[]
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
71 INIT(= N_("E1015: Name expected: %s"));
21789
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
72 EXTERN char e_cannot_declare_a_scope_variable[]
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
73 INIT(= N_("E1016: Cannot declare a %s variable: %s"));
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
74 EXTERN char e_cannot_declare_an_environment_variable[]
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
75 INIT(= N_("E1016: Cannot declare an environment variable: %s"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
76 EXTERN char e_variable_already_declared[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
77 INIT(= N_("E1017: Variable already declared: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
78 EXTERN char e_cannot_assign_to_constant[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
79 INIT(= N_("E1018: Cannot assign to a constant: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
80 EXTERN char e_can_only_concatenate_to_string[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
81 INIT(= N_("E1019: Can only concatenate to string"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
82 EXTERN char e_cannot_use_operator_on_new_variable[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
83 INIT(= N_("E1020: Cannot use an operator on a new variable: %s"));
21789
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
84 EXTERN char e_const_requires_a_value[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
85 INIT(= N_("E1021: Const requires a value"));
21789
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
86 EXTERN char e_type_or_initialization_required[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
87 INIT(= N_("E1022: Type or initialization required"));
21913
9fc27a955f00 patch 8.2.1506: Vim9: no error when using a number other than 0 or 1 as bool
Bram Moolenaar <Bram@vim.org>
parents: 21909
diff changeset
88 EXTERN char e_using_number_as_bool_nr[]
23650
83a69ada0274 patch 8.2.2367: test failures on some less often used systems
Bram Moolenaar <Bram@vim.org>
parents: 23555
diff changeset
89 INIT(= N_("E1023: Using a Number as a Bool: %lld"));
21833
e3f9528bddda patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"
Bram Moolenaar <Bram@vim.org>
parents: 21831
diff changeset
90 EXTERN char e_using_number_as_string[]
e3f9528bddda patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"
Bram Moolenaar <Bram@vim.org>
parents: 21831
diff changeset
91 INIT(= N_("E1024: Using a Number as a String"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
92 EXTERN char e_using_rcurly_outside_if_block_scope[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
93 INIT(= N_("E1025: Using } outside of a block scope"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
94 EXTERN char e_missing_rcurly[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
95 INIT(= N_("E1026: Missing }"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
96 EXTERN char e_missing_return_statement[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
97 INIT(= N_("E1027: Missing return statement"));
22614
048a3033d19c patch 8.2.1855: Vim9: get error message when nothing is wrong
Bram Moolenaar <Bram@vim.org>
parents: 22612
diff changeset
98 EXTERN char e_compiling_def_function_failed[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
99 INIT(= N_("E1028: Compiling :def function failed"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
100 EXTERN char e_expected_str_but_got_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
101 INIT(= N_("E1029: Expected %s but got %s"));
22860
53acb89ec9f2 patch 8.2.1977: Vim9: error for using a string in a condition is confusing
Bram Moolenaar <Bram@vim.org>
parents: 22802
diff changeset
102 EXTERN char e_using_string_as_number_str[]
53acb89ec9f2 patch 8.2.1977: Vim9: error for using a string in a condition is confusing
Bram Moolenaar <Bram@vim.org>
parents: 22802
diff changeset
103 INIT(= N_("E1030: Using a String as a Number: \"%s\""));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
104 EXTERN char e_cannot_use_void_value[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
105 INIT(= N_("E1031: Cannot use void value"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
106 EXTERN char e_missing_catch_or_finally[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
107 INIT(= N_("E1032: Missing :catch or :finally"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
108 EXTERN char e_catch_unreachable_after_catch_all[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
109 INIT(= N_("E1033: Catch unreachable after catch-all"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
110 EXTERN char e_cannot_use_reserved_name[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
111 INIT(= N_("E1034: Cannot use reserved name %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
112 EXTERN char e_percent_requires_number_arguments[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
113 INIT(= N_("E1035: % requires number arguments"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
114 EXTERN char e_char_requires_number_or_float_arguments[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
115 INIT(= N_("E1036: %c requires number or float arguments"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
116 EXTERN char e_cannot_use_str_with_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
117 INIT(= N_("E1037: Cannot use \"%s\" with %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
118 EXTERN char e_vim9script_can_only_be_used_in_script[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
119 INIT(= N_("E1038: \"vim9script\" can only be used in a script"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
120 EXTERN char e_vim9script_must_be_first_command_in_script[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
121 INIT(= N_("E1039: \"vim9script\" must be the first command in a script"));
23390
9a5f12b36273 patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval feature
Bram Moolenaar <Bram@vim.org>
parents: 23362
diff changeset
122 #endif
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
123 EXTERN char e_cannot_use_scriptversion_after_vim9script[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
124 INIT(= N_("E1040: Cannot use :scriptversion after :vim9script"));
23390
9a5f12b36273 patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval feature
Bram Moolenaar <Bram@vim.org>
parents: 23362
diff changeset
125 #ifdef FEAT_EVAL
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
126 EXTERN char e_redefining_script_item_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
127 INIT(= N_("E1041: Redefining script item %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
128 EXTERN char e_export_can_only_be_used_in_vim9script[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
129 INIT(= N_("E1042: Export can only be used in vim9script"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
130 EXTERN char e_invalid_command_after_export[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
131 INIT(= N_("E1043: Invalid command after :export"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
132 EXTERN char e_export_with_invalid_argument[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
133 INIT(= N_("E1044: Export with invalid argument"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
134 EXTERN char e_missing_as_after_star[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
135 INIT(= N_("E1045: Missing \"as\" after *"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
136 EXTERN char e_missing_comma_in_import[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
137 INIT(= N_("E1046: Missing comma in import"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
138 EXTERN char e_syntax_error_in_import[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
139 INIT(= N_("E1047: Syntax error in import"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
140 EXTERN char e_item_not_found_in_script_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
141 INIT(= N_("E1048: Item not found in script: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
142 EXTERN char e_item_not_exported_in_script_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
143 INIT(= N_("E1049: Item not exported in script: %s"));
23346
2060f53b7c17 patch 8.2.2216: Vim9: range with missing colon can be hard to spot
Bram Moolenaar <Bram@vim.org>
parents: 23330
diff changeset
144 EXTERN char e_colon_required_before_range_str[]
2060f53b7c17 patch 8.2.2216: Vim9: range with missing colon can be hard to spot
Bram Moolenaar <Bram@vim.org>
parents: 23330
diff changeset
145 INIT(= N_("E1050: Colon required before a range: %s"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
146 EXTERN char e_wrong_argument_type_for_plus[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
147 INIT(= N_("E1051: Wrong argument type for +"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
148 EXTERN char e_cannot_declare_an_option[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
149 INIT(= N_("E1052: Cannot declare an option: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
150 EXTERN char e_could_not_import_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
151 INIT(= N_("E1053: Could not import \"%s\""));
24033
308d29307910 patch 8.2.2558: no error if a lambda argument shadows a variable
Bram Moolenaar <Bram@vim.org>
parents: 23982
diff changeset
152 EXTERN char e_variable_already_declared_in_script_str[]
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
153 INIT(= N_("E1054: Variable already declared in the script: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
154 EXTERN char e_missing_name_after_dots[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
155 INIT(= N_("E1055: Missing name after ..."));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
156 EXTERN char e_expected_type_str[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
157 INIT(= N_("E1056: Expected a type: %s"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
158 EXTERN char e_missing_enddef[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
159 INIT(= N_("E1057: Missing :enddef"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
160 EXTERN char e_function_nesting_too_deep[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
161 INIT(= N_("E1058: Function nesting too deep"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
162 EXTERN char e_no_white_space_allowed_before_colon_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
163 INIT(= N_("E1059: No white space allowed before colon: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
164 EXTERN char e_expected_dot_after_name_str[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
165 INIT(= N_("E1060: Expected dot after name: %s"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
166 EXTERN char e_cannot_find_function_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
167 INIT(= N_("E1061: Cannot find function %s"));
21833
e3f9528bddda patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"
Bram Moolenaar <Bram@vim.org>
parents: 21831
diff changeset
168 EXTERN char e_cannot_index_number[]
e3f9528bddda patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"
Bram Moolenaar <Bram@vim.org>
parents: 21831
diff changeset
169 INIT(= N_("E1062: Cannot index a Number"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
170 EXTERN char e_type_mismatch_for_v_variable[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
171 INIT(= N_("E1063: Type mismatch for v: variable"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
172 // E1064 unused
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
173 // E1065 unused
21909
a211bca98bc3 patch 8.2.1504: Vim9: white space checks are only done for a :def function
Bram Moolenaar <Bram@vim.org>
parents: 21833
diff changeset
174 EXTERN char e_cannot_declare_a_register_str[]
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
175 INIT(= N_("E1066: Cannot declare a register: %s"));
21909
a211bca98bc3 patch 8.2.1504: Vim9: white space checks are only done for a :def function
Bram Moolenaar <Bram@vim.org>
parents: 21833
diff changeset
176 EXTERN char e_separator_mismatch_str[]
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
177 INIT(= N_("E1067: Separator mismatch: %s"));
23888
d95403445b6b patch 8.2.2486: Vim9: some errors for white space do not show context
Bram Moolenaar <Bram@vim.org>
parents: 23880
diff changeset
178 EXTERN char e_no_white_space_allowed_before_str_str[]
d95403445b6b patch 8.2.2486: Vim9: some errors for white space do not show context
Bram Moolenaar <Bram@vim.org>
parents: 23880
diff changeset
179 INIT(= N_("E1068: No white space allowed before '%s': %s"));
23877
85cf06ddb2a8 patch 8.2.2480: Vim9: some errors for white space do not show context
Bram Moolenaar <Bram@vim.org>
parents: 23869
diff changeset
180 EXTERN char e_white_space_required_after_str_str[]
85cf06ddb2a8 patch 8.2.2480: Vim9: some errors for white space do not show context
Bram Moolenaar <Bram@vim.org>
parents: 23869
diff changeset
181 INIT(= N_("E1069: White space required after '%s': %s"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
182 EXTERN char e_missing_from[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
183 INIT(= N_("E1070: Missing \"from\""));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
184 EXTERN char e_invalid_string_after_from[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
185 INIT(= N_("E1071: Invalid string after \"from\""));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
186 EXTERN char e_cannot_compare_str_with_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
187 INIT(= N_("E1072: Cannot compare %s with %s"));
21909
a211bca98bc3 patch 8.2.1504: Vim9: white space checks are only done for a :def function
Bram Moolenaar <Bram@vim.org>
parents: 21833
diff changeset
188 EXTERN char e_name_already_defined_str[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
189 INIT(= N_("E1073: Name already defined: %s"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
190 EXTERN char e_no_white_space_allowed_after_dot[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
191 INIT(= N_("E1074: No white space allowed after dot"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
192 EXTERN char e_namespace_not_supported_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
193 INIT(= N_("E1075: Namespace not supported: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
194 EXTERN char e_this_vim_is_not_compiled_with_float_support[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
195 INIT(= N_("E1076: This Vim is not compiled with float support"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
196 EXTERN char e_missing_argument_type_for_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
197 INIT(= N_("E1077: Missing argument type for %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
198 // E1078 unused
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
199 // E1079 unused
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
200 // E1080 unused
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
201 EXTERN char e_cannot_unlet_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
202 INIT(= N_("E1081: Cannot unlet %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
203 EXTERN char e_cannot_use_namespaced_variable[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
204 INIT(= N_("E1082: Cannot use a namespaced variable: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
205 EXTERN char e_missing_backtick[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
206 INIT(= N_("E1083: Missing backtick"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
207 EXTERN char e_cannot_delete_vim9_script_function_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
208 INIT(= N_("E1084: Cannot delete Vim9 script function %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
209 EXTERN char e_not_callable_type_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
210 INIT(= N_("E1085: Not a callable type: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
211 EXTERN char e_cannot_use_function_inside_def[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
212 INIT(= N_("E1086: Cannot use :function inside :def"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
213 EXTERN char e_cannot_use_index_when_declaring_variable[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
214 INIT(= N_("E1087: Cannot use an index when declaring a variable"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
215 // E1088 unused
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
216 EXTERN char e_unknown_variable_str[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
217 INIT(= N_("E1089: Unknown variable: %s"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
218 EXTERN char e_cannot_assign_to_argument[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
219 INIT(= N_("E1090: Cannot assign to argument %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
220 EXTERN char e_function_is_not_compiled_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
221 INIT(= N_("E1091: Function is not compiled: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
222 EXTERN char e_cannot_use_list_for_declaration[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
223 INIT(= N_("E1092: Cannot use a list for a declaration"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
224 EXTERN char e_expected_nr_items_but_got_nr[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
225 INIT(= N_("E1093: Expected %d items but got %d"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
226 EXTERN char e_import_can_only_be_used_in_script[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
227 INIT(= N_("E1094: Import can only be used in a script"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
228 EXTERN char e_unreachable_code_after_return[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
229 INIT(= N_("E1095: Unreachable code after :return"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
230 EXTERN char e_returning_value_in_function_without_return_type[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
231 INIT(= N_("E1096: Returning a value in a function without a return type"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
232 EXTERN char e_line_incomplete[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
233 INIT(= N_("E1097: Line incomplete"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
234 // E1098 unused
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
235 EXTERN char e_unknown_error_while_executing_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
236 INIT(= N_("E1099: Unknown error while executing %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
237 EXTERN char e_cannot_declare_script_variable_in_function[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
238 INIT(= N_("E1101: Cannot declare a script variable in a function: %s"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
239 EXTERN char e_lambda_function_not_found_str[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
240 INIT(= N_("E1102: Lambda function not found: %s"));
21789
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
241 EXTERN char e_dictionary_not_set[]
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
242 INIT(= N_("E1103: Dictionary not set"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
243 EXTERN char e_missing_gt[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
244 INIT(= N_("E1104: Missing >"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
245 EXTERN char e_cannot_convert_str_to_string[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
246 INIT(= N_("E1105: Cannot convert %s to string"));
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
247 EXTERN char e_one_argument_too_many[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
248 INIT(= N_("E1106: One argument too many"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
249 EXTERN char e_nr_arguments_too_many[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
250 INIT(= N_("E1106: %d arguments too many"));
21831
d8422de73113 patch 8.2.1465: Vim9: subscript not handled properly
Bram Moolenaar <Bram@vim.org>
parents: 21826
diff changeset
251 EXTERN char e_string_list_dict_or_blob_required[]
d8422de73113 patch 8.2.1465: Vim9: subscript not handled properly
Bram Moolenaar <Bram@vim.org>
parents: 21826
diff changeset
252 INIT(= N_("E1107: String, List, Dict or Blob required"));
21821
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
253 EXTERN char e_item_not_found_str[]
0deb6f96a5a3 patch 8.2.1460: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents: 21789
diff changeset
254 INIT(= N_("E1108: Item not found: %s"));
21971
0bc43a704f56 patch 8.2.1535: it is not possible to specify cell widths of characters
Bram Moolenaar <Bram@vim.org>
parents: 21913
diff changeset
255 EXTERN char e_list_item_nr_is_not_list[]
0bc43a704f56 patch 8.2.1535: it is not possible to specify cell widths of characters
Bram Moolenaar <Bram@vim.org>
parents: 21913
diff changeset
256 INIT(= N_("E1109: List item %d is not a List"));
0bc43a704f56 patch 8.2.1535: it is not possible to specify cell widths of characters
Bram Moolenaar <Bram@vim.org>
parents: 21913
diff changeset
257 EXTERN char e_list_item_nr_does_not_contain_3_numbers[]
0bc43a704f56 patch 8.2.1535: it is not possible to specify cell widths of characters
Bram Moolenaar <Bram@vim.org>
parents: 21913
diff changeset
258 INIT(= N_("E1110: List item %d does not contain 3 numbers"));
0bc43a704f56 patch 8.2.1535: it is not possible to specify cell widths of characters
Bram Moolenaar <Bram@vim.org>
parents: 21913
diff changeset
259 EXTERN char e_list_item_nr_range_invalid[]
0bc43a704f56 patch 8.2.1535: it is not possible to specify cell widths of characters
Bram Moolenaar <Bram@vim.org>
parents: 21913
diff changeset
260 INIT(= N_("E1111: List item %d range invalid"));
0bc43a704f56 patch 8.2.1535: it is not possible to specify cell widths of characters
Bram Moolenaar <Bram@vim.org>
parents: 21913
diff changeset
261 EXTERN char e_list_item_nr_cell_width_invalid[]
0bc43a704f56 patch 8.2.1535: it is not possible to specify cell widths of characters
Bram Moolenaar <Bram@vim.org>
parents: 21913
diff changeset
262 INIT(= N_("E1112: List item %d cell width invalid"));
0bc43a704f56 patch 8.2.1535: it is not possible to specify cell widths of characters
Bram Moolenaar <Bram@vim.org>
parents: 21913
diff changeset
263 EXTERN char e_overlapping_ranges_for_nr[]
21975
2030f8267db9 patch 8.2.1537: memory acccess error when using setcellwidths()
Bram Moolenaar <Bram@vim.org>
parents: 21971
diff changeset
264 INIT(= N_("E1113: Overlapping ranges for 0x%lx"));
21971
0bc43a704f56 patch 8.2.1535: it is not possible to specify cell widths of characters
Bram Moolenaar <Bram@vim.org>
parents: 21913
diff changeset
265 EXTERN char e_only_values_of_0x100_and_higher_supported[]
0bc43a704f56 patch 8.2.1535: it is not possible to specify cell widths of characters
Bram Moolenaar <Bram@vim.org>
parents: 21913
diff changeset
266 INIT(= N_("E1114: Only values of 0x100 and higher supported"));
22165
c512e6f57ff2 patch 8.2.1632: not checking the context of test_fails()
Bram Moolenaar <Bram@vim.org>
parents: 21975
diff changeset
267 EXTERN char e_assert_fails_fourth_argument[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
268 INIT(= N_("E1115: \"assert_fails()\" fourth argument must be a number"));
22165
c512e6f57ff2 patch 8.2.1632: not checking the context of test_fails()
Bram Moolenaar <Bram@vim.org>
parents: 21975
diff changeset
269 EXTERN char e_assert_fails_fifth_argument[]
22296
006b8ab9d554 patch 8.2.1697: inconsistent capitalization of error messages
Bram Moolenaar <Bram@vim.org>
parents: 22284
diff changeset
270 INIT(= N_("E1116: \"assert_fails()\" fifth argument must be a string"));
22216
f9b4576a618b patch 8.2.1657: Vim9: no proper error for nested ":def!"
Bram Moolenaar <Bram@vim.org>
parents: 22165
diff changeset
271 EXTERN char e_cannot_use_bang_with_nested_def[]
f9b4576a618b patch 8.2.1657: Vim9: no proper error for nested ":def!"
Bram Moolenaar <Bram@vim.org>
parents: 22165
diff changeset
272 INIT(= N_("E1117: Cannot use ! with nested :def"));
22272
eb1f5f618c75 patch 8.2.1685: Vim9: cannot declare a constant value
Bram Moolenaar <Bram@vim.org>
parents: 22216
diff changeset
273 EXTERN char e_cannot_change_list[]
eb1f5f618c75 patch 8.2.1685: Vim9: cannot declare a constant value
Bram Moolenaar <Bram@vim.org>
parents: 22216
diff changeset
274 INIT(= N_("E1118: Cannot change list"));
eb1f5f618c75 patch 8.2.1685: Vim9: cannot declare a constant value
Bram Moolenaar <Bram@vim.org>
parents: 22216
diff changeset
275 EXTERN char e_cannot_change_list_item[]
eb1f5f618c75 patch 8.2.1685: Vim9: cannot declare a constant value
Bram Moolenaar <Bram@vim.org>
parents: 22216
diff changeset
276 INIT(= N_("E1119: Cannot change list item"));
eb1f5f618c75 patch 8.2.1685: Vim9: cannot declare a constant value
Bram Moolenaar <Bram@vim.org>
parents: 22216
diff changeset
277 EXTERN char e_cannot_change_dict[]
eb1f5f618c75 patch 8.2.1685: Vim9: cannot declare a constant value
Bram Moolenaar <Bram@vim.org>
parents: 22216
diff changeset
278 INIT(= N_("E1120: Cannot change dict"));
eb1f5f618c75 patch 8.2.1685: Vim9: cannot declare a constant value
Bram Moolenaar <Bram@vim.org>
parents: 22216
diff changeset
279 EXTERN char e_cannot_change_dict_item[]
eb1f5f618c75 patch 8.2.1685: Vim9: cannot declare a constant value
Bram Moolenaar <Bram@vim.org>
parents: 22216
diff changeset
280 INIT(= N_("E1121: Cannot change dict item"));
22300
528bb8e6e877 patch 8.2.1699: build failure due to missing error message
Bram Moolenaar <Bram@vim.org>
parents: 22296
diff changeset
281 EXTERN char e_variable_is_locked_str[]
528bb8e6e877 patch 8.2.1699: build failure due to missing error message
Bram Moolenaar <Bram@vim.org>
parents: 22296
diff changeset
282 INIT(= N_("E1122: Variable is locked: %s"));
22341
fc3350a38389 patch 8.2.1719: Vim9: no error if comma is missing in between arguments
Bram Moolenaar <Bram@vim.org>
parents: 22300
diff changeset
283 EXTERN char e_missing_comma_before_argument_str[]
fc3350a38389 patch 8.2.1719: Vim9: no error if comma is missing in between arguments
Bram Moolenaar <Bram@vim.org>
parents: 22300
diff changeset
284 INIT(= N_("E1123: Missing comma before argument: %s"));
22391
a9fb7efa31d6 patch 8.2.1744: Vim9: using ":const!" is weird
Bram Moolenaar <Bram@vim.org>
parents: 22341
diff changeset
285 EXTERN char e_str_cannot_be_used_in_legacy_vim_script[]
a9fb7efa31d6 patch 8.2.1744: Vim9: using ":const!" is weird
Bram Moolenaar <Bram@vim.org>
parents: 22341
diff changeset
286 INIT(= N_("E1124: \"%s\" cannot be used in legacy Vim script"));
a9fb7efa31d6 patch 8.2.1744: Vim9: using ":const!" is weird
Bram Moolenaar <Bram@vim.org>
parents: 22341
diff changeset
287 EXTERN char e_final_requires_a_value[]
a9fb7efa31d6 patch 8.2.1744: Vim9: using ":const!" is weird
Bram Moolenaar <Bram@vim.org>
parents: 22341
diff changeset
288 INIT(= N_("E1125: Final requires a value"));
22415
1cefe1c013ac patch 8.2.1756: Vim9: :let will soon be disallowed
Bram Moolenaar <Bram@vim.org>
parents: 22391
diff changeset
289 EXTERN char e_cannot_use_let_in_vim9_script[]
1cefe1c013ac patch 8.2.1756: Vim9: :let will soon be disallowed
Bram Moolenaar <Bram@vim.org>
parents: 22391
diff changeset
290 INIT(= N_("E1126: Cannot use :let in Vim9 script"));
22482
a1b3804163ca patch 8.2.1789: Vim9: crash with invalid list constant
Bram Moolenaar <Bram@vim.org>
parents: 22415
diff changeset
291 EXTERN char e_missing_name_after_dot[]
a1b3804163ca patch 8.2.1789: Vim9: crash with invalid list constant
Bram Moolenaar <Bram@vim.org>
parents: 22415
diff changeset
292 INIT(= N_("E1127: Missing name after dot"));
22555
7d25264c246c patch 8.2.1826: Vim9: cannot use a {} block at script level
Bram Moolenaar <Bram@vim.org>
parents: 22482
diff changeset
293 EXTERN char e_endblock_without_block[]
7d25264c246c patch 8.2.1826: Vim9: cannot use a {} block at script level
Bram Moolenaar <Bram@vim.org>
parents: 22482
diff changeset
294 INIT(= N_("E1128: } without {"));
22612
b08f435d5b86 patch 8.2.1854: Vim9: crash when throwing exception for NULL string
Bram Moolenaar <Bram@vim.org>
parents: 22555
diff changeset
295 EXTERN char e_throw_with_empty_string[]
b08f435d5b86 patch 8.2.1854: Vim9: crash when throwing exception for NULL string
Bram Moolenaar <Bram@vim.org>
parents: 22555
diff changeset
296 INIT(= N_("E1129: Throw with empty string"));
22633
6589dae9696c patch 8.2.1865: Vim9: add() does not check type of argument
Bram Moolenaar <Bram@vim.org>
parents: 22614
diff changeset
297 EXTERN char e_cannot_add_to_null_list[]
6589dae9696c patch 8.2.1865: Vim9: add() does not check type of argument
Bram Moolenaar <Bram@vim.org>
parents: 22614
diff changeset
298 INIT(= N_("E1130: Cannot add to null list"));
22637
4d4042683371 patch 8.2.1867: Vim9: argument to add() not checked for blob
Bram Moolenaar <Bram@vim.org>
parents: 22633
diff changeset
299 EXTERN char e_cannot_add_to_null_blob[]
4d4042683371 patch 8.2.1867: Vim9: argument to add() not checked for blob
Bram Moolenaar <Bram@vim.org>
parents: 22633
diff changeset
300 INIT(= N_("E1131: Cannot add to null blob"));
22794
42bb78d46354 patch 8.2.1945: crash when passing NULL function to reduce()
Bram Moolenaar <Bram@vim.org>
parents: 22740
diff changeset
301 EXTERN char e_missing_function_argument[]
42bb78d46354 patch 8.2.1945: crash when passing NULL function to reduce()
Bram Moolenaar <Bram@vim.org>
parents: 22740
diff changeset
302 INIT(= N_("E1132: Missing function argument"));
22802
3e0f909ca1f2 patch 8.2.1949: Vim9: using extend() on null dict is silently ignored
Bram Moolenaar <Bram@vim.org>
parents: 22794
diff changeset
303 EXTERN char e_cannot_extend_null_dict[]
3e0f909ca1f2 patch 8.2.1949: Vim9: using extend() on null dict is silently ignored
Bram Moolenaar <Bram@vim.org>
parents: 22794
diff changeset
304 INIT(= N_("E1133: Cannot extend a null dict"));
3e0f909ca1f2 patch 8.2.1949: Vim9: using extend() on null dict is silently ignored
Bram Moolenaar <Bram@vim.org>
parents: 22794
diff changeset
305 EXTERN char e_cannot_extend_null_list[]
3e0f909ca1f2 patch 8.2.1949: Vim9: using extend() on null dict is silently ignored
Bram Moolenaar <Bram@vim.org>
parents: 22794
diff changeset
306 INIT(= N_("E1134: Cannot extend a null list"));
22860
53acb89ec9f2 patch 8.2.1977: Vim9: error for using a string in a condition is confusing
Bram Moolenaar <Bram@vim.org>
parents: 22802
diff changeset
307 EXTERN char e_using_string_as_bool_str[]
53acb89ec9f2 patch 8.2.1977: Vim9: error for using a string in a condition is confusing
Bram Moolenaar <Bram@vim.org>
parents: 22802
diff changeset
308 INIT(= N_("E1135: Using a String as a Bool: \"%s\""));
21789
f84625b961a8 patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
309 #endif
22862
6d50182e7e24 patch 8.2.1978: making a mapping work in all modes is complicated
Bram Moolenaar <Bram@vim.org>
parents: 22860
diff changeset
310 EXTERN char e_cmd_mapping_must_end_with_cr[]
6d50182e7e24 patch 8.2.1978: making a mapping work in all modes is complicated
Bram Moolenaar <Bram@vim.org>
parents: 22860
diff changeset
311 INIT(=N_("E1135: <Cmd> mapping must end with <CR>"));
6d50182e7e24 patch 8.2.1978: making a mapping work in all modes is complicated
Bram Moolenaar <Bram@vim.org>
parents: 22860
diff changeset
312 EXTERN char e_cmd_mapping_must_end_with_cr_before_second_cmd[]
6d50182e7e24 patch 8.2.1978: making a mapping work in all modes is complicated
Bram Moolenaar <Bram@vim.org>
parents: 22860
diff changeset
313 INIT(=N_("E1136: <Cmd> mapping must end with <CR> before second <Cmd>"));
6d50182e7e24 patch 8.2.1978: making a mapping work in all modes is complicated
Bram Moolenaar <Bram@vim.org>
parents: 22860
diff changeset
314 EXTERN char e_cmd_maping_must_not_include_str_key[]
6d50182e7e24 patch 8.2.1978: making a mapping work in all modes is complicated
Bram Moolenaar <Bram@vim.org>
parents: 22860
diff changeset
315 INIT(= N_("E1137: <Cmd> mapping must not include %s key"));
22930
84567584951f patch 8.2.2012: Vim9: confusing error message when using bool wrongly
Bram Moolenaar <Bram@vim.org>
parents: 22862
diff changeset
316 EXTERN char e_using_bool_as_number[]
84567584951f patch 8.2.2012: Vim9: confusing error message when using bool wrongly
Bram Moolenaar <Bram@vim.org>
parents: 22862
diff changeset
317 INIT(= N_("E1138: Using a Bool as a Number"));
22936
00b0275ffe7f patch 8.2.2015: Vim9: literal dict #{} is not like any other language
Bram Moolenaar <Bram@vim.org>
parents: 22930
diff changeset
318 EXTERN char e_missing_matching_bracket_after_dict_key[]
00b0275ffe7f patch 8.2.2015: Vim9: literal dict #{} is not like any other language
Bram Moolenaar <Bram@vim.org>
parents: 22930
diff changeset
319 INIT(= N_("E1139: Missing matching bracket after dict key"));
22975
a943b175586a patch 8.2.2034: Vim9: list unpack in for statement not compiled yet
Bram Moolenaar <Bram@vim.org>
parents: 22936
diff changeset
320 EXTERN char e_for_argument_must_be_sequence_of_lists[]
a943b175586a patch 8.2.2034: Vim9: list unpack in for statement not compiled yet
Bram Moolenaar <Bram@vim.org>
parents: 22936
diff changeset
321 INIT(= N_("E1140: For argument must be a sequence of lists"));
23033
b98003d73150 patch 8.2.2063: Vim9: only one level of indexing supported
Bram Moolenaar <Bram@vim.org>
parents: 22975
diff changeset
322 EXTERN char e_indexable_type_required[]
b98003d73150 patch 8.2.2063: Vim9: only one level of indexing supported
Bram Moolenaar <Bram@vim.org>
parents: 22975
diff changeset
323 INIT(= N_("E1141: Indexable type required"));
23175
d7294a6220ac patch 8.2.2133: Vim9: checking for a non-empty string is too strict
Bram Moolenaar <Bram@vim.org>
parents: 23033
diff changeset
324 EXTERN char e_non_empty_string_required[]
d7294a6220ac patch 8.2.2133: Vim9: checking for a non-empty string is too strict
Bram Moolenaar <Bram@vim.org>
parents: 23033
diff changeset
325 INIT(= N_("E1142: Non-empty string required"));
23183
4d5d12138b36 patch 8.2.2137: Vim9: :echo and :execute give error for empty argument
Bram Moolenaar <Bram@vim.org>
parents: 23175
diff changeset
326 EXTERN char e_empty_expression_str[]
23185
055fa9db6f39 patch 8.2.2138: Vim9: "exit_cb" causes Vim to exit
Bram Moolenaar <Bram@vim.org>
parents: 23183
diff changeset
327 INIT(= N_("E1143: Empty expression: \"%s\""));
24543
b3bd27751e09 patch 8.2.2811: Vim9: error for missing white space doesn't say where
Bram Moolenaar <Bram@vim.org>
parents: 24490
diff changeset
328 EXTERN char e_command_str_not_followed_by_white_space_str[]
b3bd27751e09 patch 8.2.2811: Vim9: error for missing white space doesn't say where
Bram Moolenaar <Bram@vim.org>
parents: 24490
diff changeset
329 INIT(= N_("E1144: Command \"%s\" is not followed by white space: %s"));
23185
055fa9db6f39 patch 8.2.2138: Vim9: "exit_cb" causes Vim to exit
Bram Moolenaar <Bram@vim.org>
parents: 23183
diff changeset
330 EXTERN char e_missing_heredoc_end_marker_str[]
055fa9db6f39 patch 8.2.2138: Vim9: "exit_cb" causes Vim to exit
Bram Moolenaar <Bram@vim.org>
parents: 23183
diff changeset
331 INIT(= N_("E1145: Missing heredoc end marker: %s"));
23254
4b7e996354e0 patch 8.2.2173: Vim9: get internal error when assigning to undefined variable
Bram Moolenaar <Bram@vim.org>
parents: 23185
diff changeset
332 EXTERN char e_command_not_recognized_str[]
4b7e996354e0 patch 8.2.2173: Vim9: get internal error when assigning to undefined variable
Bram Moolenaar <Bram@vim.org>
parents: 23185
diff changeset
333 INIT(= N_("E1146: Command not recognized: %s"));
23266
00f7cd9b6033 patch 8.2.2179: Vim9: crash when indexing a dict with a number
Bram Moolenaar <Bram@vim.org>
parents: 23254
diff changeset
334 EXTERN char e_list_not_set[]
00f7cd9b6033 patch 8.2.2179: Vim9: crash when indexing a dict with a number
Bram Moolenaar <Bram@vim.org>
parents: 23254
diff changeset
335 INIT(= N_("E1147: List not set"));
00f7cd9b6033 patch 8.2.2179: Vim9: crash when indexing a dict with a number
Bram Moolenaar <Bram@vim.org>
parents: 23254
diff changeset
336 EXTERN char e_cannot_index_str[]
00f7cd9b6033 patch 8.2.2179: Vim9: crash when indexing a dict with a number
Bram Moolenaar <Bram@vim.org>
parents: 23254
diff changeset
337 INIT(= N_("E1148: Cannot index a %s"));
23330
e8eb4fd44902 patch 8.2.2208: Vim9: after reloading a script variable index may be invalid
Bram Moolenaar <Bram@vim.org>
parents: 23266
diff changeset
338 EXTERN char e_script_variable_invalid_after_reload_in_function_str[]
e8eb4fd44902 patch 8.2.2208: Vim9: after reloading a script variable index may be invalid
Bram Moolenaar <Bram@vim.org>
parents: 23266
diff changeset
339 INIT(= N_("E1149: Script variable is invalid after reload in function %s"));
23362
f181fe2150ab patch 8.2.2224: Vim9: crash if script reloaded with different variable type
Bram Moolenaar <Bram@vim.org>
parents: 23346
diff changeset
340 EXTERN char e_script_variable_type_changed[]
f181fe2150ab patch 8.2.2224: Vim9: crash if script reloaded with different variable type
Bram Moolenaar <Bram@vim.org>
parents: 23346
diff changeset
341 INIT(= N_("E1150: Script variable type changed"));
23442
f00d6ff51046 patch 8.2.2264: Vim9: no error for mismatched :endfunc or :enddef
Bram Moolenaar <Bram@vim.org>
parents: 23390
diff changeset
342 EXTERN char e_mismatched_endfunction[]
f00d6ff51046 patch 8.2.2264: Vim9: no error for mismatched :endfunc or :enddef
Bram Moolenaar <Bram@vim.org>
parents: 23390
diff changeset
343 INIT(= N_("E1151: Mismatched endfunction"));
f00d6ff51046 patch 8.2.2264: Vim9: no error for mismatched :endfunc or :enddef
Bram Moolenaar <Bram@vim.org>
parents: 23390
diff changeset
344 EXTERN char e_mismatched_enddef[]
f00d6ff51046 patch 8.2.2264: Vim9: no error for mismatched :endfunc or :enddef
Bram Moolenaar <Bram@vim.org>
parents: 23390
diff changeset
345 INIT(= N_("E1152: Mismatched enddef"));
23555
0f7bb6f706f0 patch 8.2.2320: Vim9: no error for comparing bool with string
Bram Moolenaar <Bram@vim.org>
parents: 23513
diff changeset
346 EXTERN char e_invalid_operation_for_bool[]
0f7bb6f706f0 patch 8.2.2320: Vim9: no error for comparing bool with string
Bram Moolenaar <Bram@vim.org>
parents: 23513
diff changeset
347 INIT(= N_("E1153: Invalid operation for bool"));
23673
6d35bc0f161e patch 8.2.2378: Vim9: no error message for dividing by zero
Bram Moolenaar <Bram@vim.org>
parents: 23650
diff changeset
348 EXTERN char e_divide_by_zero[]
6d35bc0f161e patch 8.2.2378: Vim9: no error message for dividing by zero
Bram Moolenaar <Bram@vim.org>
parents: 23650
diff changeset
349 INIT(= N_("E1154: Divide by zero"));
23758
97296182d336 patch 8.2.2420: too many problems with using all autocommand events
Bram Moolenaar <Bram@vim.org>
parents: 23673
diff changeset
350 EXTERN char e_cannot_define_autocommands_for_all_events[]
97296182d336 patch 8.2.2420: too many problems with using all autocommand events
Bram Moolenaar <Bram@vim.org>
parents: 23673
diff changeset
351 INIT(= N_("E1155: Cannot define autocommands for ALL events"));
23764
c4208c7ba1cb patch 8.2.2423: missing error message
Bram Moolenaar <Bram@vim.org>
parents: 23758
diff changeset
352 EXTERN char e_cannot_change_arglist_recursively[]
c4208c7ba1cb patch 8.2.2423: missing error message
Bram Moolenaar <Bram@vim.org>
parents: 23758
diff changeset
353 INIT(= N_("E1156: Cannot change the argument list recursively"));
23808
baf9069f64ca patch 8.2.2445: Vim9: no proper error for lambda missing return type
Bram Moolenaar <Bram@vim.org>
parents: 23764
diff changeset
354 EXTERN char e_missing_return_type[]
baf9069f64ca patch 8.2.2445: Vim9: no proper error for lambda missing return type
Bram Moolenaar <Bram@vim.org>
parents: 23764
diff changeset
355 INIT(= N_("E1157: Missing return type"));
23816
525c9e218c69 patch 8.2.2449: Vim9: flatten() always changes the list type
Bram Moolenaar <Bram@vim.org>
parents: 23808
diff changeset
356 EXTERN char e_cannot_use_flatten_in_vim9_script[]
525c9e218c69 patch 8.2.2449: Vim9: flatten() always changes the list type
Bram Moolenaar <Bram@vim.org>
parents: 23808
diff changeset
357 INIT(= N_("E1158: Cannot use flatten() in Vim9 script"));
23869
5a4f9c5c1b99 patch 8.2.2476: using freed memory when splitting window while closing buffer
Bram Moolenaar <Bram@vim.org>
parents: 23816
diff changeset
358 EXTERN char e_cannot_split_window_when_closing_buffer[]
5a4f9c5c1b99 patch 8.2.2476: using freed memory when splitting window while closing buffer
Bram Moolenaar <Bram@vim.org>
parents: 23816
diff changeset
359 INIT(= N_("E1159: Cannot split a window when closing the buffer"));
23880
6559c0d6eb4c patch 8.2.2482: build error
Bram Moolenaar <Bram@vim.org>
parents: 23877
diff changeset
360 EXTERN char e_cannot_use_default_for_variable_arguments[]
6559c0d6eb4c patch 8.2.2482: build error
Bram Moolenaar <Bram@vim.org>
parents: 23877
diff changeset
361 INIT(= N_("E1160: Cannot use a default for variable arguments"));
23891
650070143c56 patch 8.2.2488: json_encode() gives generic argument error
Bram Moolenaar <Bram@vim.org>
parents: 23888
diff changeset
362 EXTERN char e_cannot_json_encode_str[]
650070143c56 patch 8.2.2488: json_encode() gives generic argument error
Bram Moolenaar <Bram@vim.org>
parents: 23888
diff changeset
363 INIT(= N_("E1161: Cannot json encode a %s"));
23909
5db7d275543c patch 8.2.2497: no error when using more than one character for a register
Bram Moolenaar <Bram@vim.org>
parents: 23891
diff changeset
364 EXTERN char e_register_name_must_be_one_char_str[]
5db7d275543c patch 8.2.2497: no error when using more than one character for a register
Bram Moolenaar <Bram@vim.org>
parents: 23891
diff changeset
365 INIT(= N_("E1162: Register name must be one character: %s"));
23917
4b417b776b95 patch 8.2.2501: not always clear where an error is reported
Bram Moolenaar <Bram@vim.org>
parents: 23909
diff changeset
366 EXTERN char e_variable_nr_type_mismatch_expected_str_but_got_str[]
4b417b776b95 patch 8.2.2501: not always clear where an error is reported
Bram Moolenaar <Bram@vim.org>
parents: 23909
diff changeset
367 INIT(= N_("E1163: Variable %d: type mismatch, expected %s but got %s"));
23938
2a885d095bff patch 8.2.2511: Vim9: cannot use Vim9 script syntax in some places
Bram Moolenaar <Bram@vim.org>
parents: 23917
diff changeset
368 EXTERN char e_vim9cmd_must_be_followed_by_command[]
2a885d095bff patch 8.2.2511: Vim9: cannot use Vim9 script syntax in some places
Bram Moolenaar <Bram@vim.org>
parents: 23917
diff changeset
369 INIT(= N_("E1164: vim9cmd must be followed by a command"));
23982
9fcd71d0db89 patch 8.2.2533: Vim9: cannot use a range with :unlet
Bram Moolenaar <Bram@vim.org>
parents: 23938
diff changeset
370 EXTERN char e_cannot_use_range_with_assignment_str[]
9fcd71d0db89 patch 8.2.2533: Vim9: cannot use a range with :unlet
Bram Moolenaar <Bram@vim.org>
parents: 23938
diff changeset
371 INIT(= N_("E1165: Cannot use a range with an assignment: %s"));
9fcd71d0db89 patch 8.2.2533: Vim9: cannot use a range with :unlet
Bram Moolenaar <Bram@vim.org>
parents: 23938
diff changeset
372 EXTERN char e_cannot_use_range_with_dictionary[]
9fcd71d0db89 patch 8.2.2533: Vim9: cannot use a range with :unlet
Bram Moolenaar <Bram@vim.org>
parents: 23938
diff changeset
373 INIT(= N_("E1166: Cannot use a range with a dictionary"));
24033
308d29307910 patch 8.2.2558: no error if a lambda argument shadows a variable
Bram Moolenaar <Bram@vim.org>
parents: 23982
diff changeset
374 EXTERN char e_argument_name_shadows_existing_variable_str[]
308d29307910 patch 8.2.2558: no error if a lambda argument shadows a variable
Bram Moolenaar <Bram@vim.org>
parents: 23982
diff changeset
375 INIT(= N_("E1167: Argument name shadows existing variable: %s"));
308d29307910 patch 8.2.2558: no error if a lambda argument shadows a variable
Bram Moolenaar <Bram@vim.org>
parents: 23982
diff changeset
376 EXTERN char e_argument_already_declared_in_script_str[]
308d29307910 patch 8.2.2558: no error if a lambda argument shadows a variable
Bram Moolenaar <Bram@vim.org>
parents: 23982
diff changeset
377 INIT(= N_("E1168: Argument already declared in the script: %s"));
24112
0346a59ed5bf patch 8.2.2597: Vim9: "import * as" does not work at script level
Bram Moolenaar <Bram@vim.org>
parents: 24033
diff changeset
378 EXTERN char e_import_as_name_not_supported_here[]
0346a59ed5bf patch 8.2.2597: Vim9: "import * as" does not work at script level
Bram Moolenaar <Bram@vim.org>
parents: 24033
diff changeset
379 INIT(= N_("E1169: 'import * as {name}' not supported here"));
24158
93e69703a290 patch 8.2.2620: Vim9: Using #{ for a dictionary gives strange errors
Bram Moolenaar <Bram@vim.org>
parents: 24112
diff changeset
380 EXTERN char e_cannot_use_hash_curly_to_start_comment[]
24176
12378fbc99bc patch 8.2.2629: Vim9: error for #{{ is not desired
Bram Moolenaar <Bram@vim.org>
parents: 24158
diff changeset
381 INIT(= N_("E1170: Cannot use #{ to start a comment"));
24188
c20e763bc73c patch 8.2.2635: Vim9: cannot define an inline function
Bram Moolenaar <Bram@vim.org>
parents: 24176
diff changeset
382 EXTERN char e_missing_end_block[]
c20e763bc73c patch 8.2.2635: Vim9: cannot define an inline function
Bram Moolenaar <Bram@vim.org>
parents: 24176
diff changeset
383 INIT(= N_("E1171: Missing } after inline function"));
c20e763bc73c patch 8.2.2635: Vim9: cannot define an inline function
Bram Moolenaar <Bram@vim.org>
parents: 24176
diff changeset
384 EXTERN char e_cannot_use_default_values_in_lambda[]
c20e763bc73c patch 8.2.2635: Vim9: cannot define an inline function
Bram Moolenaar <Bram@vim.org>
parents: 24176
diff changeset
385 INIT(= N_("E1172: Cannot use default values in a lambda"));
24208
7a21b2581dce patch 8.2.2645: using inline function is not properly tested
Bram Moolenaar <Bram@vim.org>
parents: 24188
diff changeset
386 EXTERN char e_text_found_after_enddef_str[]
7a21b2581dce patch 8.2.2645: using inline function is not properly tested
Bram Moolenaar <Bram@vim.org>
parents: 24188
diff changeset
387 INIT(= N_("E1173: Text found after enddef: %s"));
24210
083f07f99e20 patch 8.2.2646: Vim9: error for not using string doesn't mentionargument
Bram Moolenaar <Bram@vim.org>
parents: 24208
diff changeset
388 EXTERN char e_string_required_for_argument_nr[]
083f07f99e20 patch 8.2.2646: Vim9: error for not using string doesn't mentionargument
Bram Moolenaar <Bram@vim.org>
parents: 24208
diff changeset
389 INIT(= N_("E1174: String required for argument %d"));
083f07f99e20 patch 8.2.2646: Vim9: error for not using string doesn't mentionargument
Bram Moolenaar <Bram@vim.org>
parents: 24208
diff changeset
390 EXTERN char e_non_empty_string_required_for_argument_nr[]
24224
115c0196588d patch 8.2.2653: build failure
Bram Moolenaar <Bram@vim.org>
parents: 24210
diff changeset
391 INIT(= N_("E1175: Non-empty string required for argument %d"));
115c0196588d patch 8.2.2653: build failure
Bram Moolenaar <Bram@vim.org>
parents: 24210
diff changeset
392 EXTERN char e_misplaced_command_modifier[]
115c0196588d patch 8.2.2653: build failure
Bram Moolenaar <Bram@vim.org>
parents: 24210
diff changeset
393 INIT(= N_("E1176: Misplaced command modifier"));
24234
7ffc795288dd patch 8.2.2658: :for cannot loop over a string
Bram Moolenaar <Bram@vim.org>
parents: 24224
diff changeset
394 EXTERN char e_for_loop_on_str_not_supported[]
7ffc795288dd patch 8.2.2658: :for cannot loop over a string
Bram Moolenaar <Bram@vim.org>
parents: 24224
diff changeset
395 INIT(= N_("E1177: For loop on %s not supported"));
24262
d0e86f1b34e7 patch 8.2.2672: Vim9: cannot use :lockvar and :unlockvar in compiled script
Bram Moolenaar <Bram@vim.org>
parents: 24234
diff changeset
396 EXTERN char e_cannot_lock_unlock_local_variable[]
d0e86f1b34e7 patch 8.2.2672: Vim9: cannot use :lockvar and :unlockvar in compiled script
Bram Moolenaar <Bram@vim.org>
parents: 24234
diff changeset
397 INIT(= N_("E1178: Cannot lock or unlock a local variable"));
24270
3564fd251bb6 patch 8.2.2676: missing error message
Bram Moolenaar <Bram@vim.org>
parents: 24262
diff changeset
398 EXTERN char e_failed_to_extract_pwd_from_str_check_your_shell_config[]
3564fd251bb6 patch 8.2.2676: missing error message
Bram Moolenaar <Bram@vim.org>
parents: 24262
diff changeset
399 INIT(= N_("E1179: Failed to extract PWD from %s, check your shell's config related to OSC 7"));
24400
62e978382fa0 patch 8.2.2740: Vim9: lambda with varargs doesn't work
Bram Moolenaar <Bram@vim.org>
parents: 24270
diff changeset
400 EXTERN char e_variable_arguments_type_must_be_list_str[]
62e978382fa0 patch 8.2.2740: Vim9: lambda with varargs doesn't work
Bram Moolenaar <Bram@vim.org>
parents: 24270
diff changeset
401 INIT(= N_("E1180: Variable arguments type must be a list: %s"));
24408
96e0b898d5b4 patch 8.2.2744: Vim9: no way to explicitly ignore an argument
Bram Moolenaar <Bram@vim.org>
parents: 24400
diff changeset
402 EXTERN char e_cannot_use_underscore_here[]
96e0b898d5b4 patch 8.2.2744: Vim9: no way to explicitly ignore an argument
Bram Moolenaar <Bram@vim.org>
parents: 24400
diff changeset
403 INIT(= N_("E1181: Cannot use an underscore here"));
24434
602e528a8e43 patch 8.2.2757: Vim9: blob tests for legacy and Vim9 script are separate
Bram Moolenaar <Bram@vim.org>
parents: 24408
diff changeset
404 EXTERN char e_blob_required[]
602e528a8e43 patch 8.2.2757: Vim9: blob tests for legacy and Vim9 script are separate
Bram Moolenaar <Bram@vim.org>
parents: 24408
diff changeset
405 INIT(= N_("E1182: Blob required"));
24450
3e1886f1e875 patch 8.2.2765: Vim9: not all blob operations work
Bram Moolenaar <Bram@vim.org>
parents: 24434
diff changeset
406 EXTERN char e_cannot_use_range_with_assignment_operator_str[]
3e1886f1e875 patch 8.2.2765: Vim9: not all blob operations work
Bram Moolenaar <Bram@vim.org>
parents: 24434
diff changeset
407 INIT(= N_("E1183: Cannot use a range with an assignment operator: %s"));
24475
96905804bf5a patch 8.2.2777: Vim9: blob operations not tested in all ways
Bram Moolenaar <Bram@vim.org>
parents: 24450
diff changeset
408 EXTERN char e_blob_not_set[]
96905804bf5a patch 8.2.2777: Vim9: blob operations not tested in all ways
Bram Moolenaar <Bram@vim.org>
parents: 24450
diff changeset
409 INIT(= N_("E1184: Blob not set"));
24490
08050e45bd06 patch 8.2.2785: Vim9: cannot redirect to local variable
Bram Moolenaar <Bram@vim.org>
parents: 24475
diff changeset
410 EXTERN char e_cannot_nest_redir[]
08050e45bd06 patch 8.2.2785: Vim9: cannot redirect to local variable
Bram Moolenaar <Bram@vim.org>
parents: 24475
diff changeset
411 INIT(= N_("E1185: Cannot nest :redir"));
08050e45bd06 patch 8.2.2785: Vim9: cannot redirect to local variable
Bram Moolenaar <Bram@vim.org>
parents: 24475
diff changeset
412 EXTERN char e_missing_redir_end[]
08050e45bd06 patch 8.2.2785: Vim9: cannot redirect to local variable
Bram Moolenaar <Bram@vim.org>
parents: 24475
diff changeset
413 INIT(= N_("E1185: Missing :redir END"));
24614
07b3d21a8b4b patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void
Bram Moolenaar <Bram@vim.org>
parents: 24543
diff changeset
414 EXTERN char e_expression_does_not_result_in_value_str[]
07b3d21a8b4b patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void
Bram Moolenaar <Bram@vim.org>
parents: 24543
diff changeset
415 INIT(= N_("E1186: Expression does not result in a value: %s"));