mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
vim-patch:8.2.0469: Vim9: no error for missing ] after list
Problem: Vim9: no error for missing ] after list.
Solution: Add error message. Add more tests.
ee619e5bc0
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -90,6 +90,7 @@
|
||||
#define DICT_MAXNEST 100 // maximum nesting of lists and dicts
|
||||
|
||||
static char *e_missbrac = N_("E111: Missing ']'");
|
||||
static char *e_list_end = N_("E697: Missing end of List ']': %s");
|
||||
static char *e_dictrange = N_("E719: Cannot use [:] with a Dictionary");
|
||||
static char *e_nowhitespace
|
||||
= N_("E274: No white space allowed before parenthesis");
|
||||
@@ -4035,7 +4036,7 @@ static int get_list_tv(char **arg, typval_T *rettv, int evaluate)
|
||||
}
|
||||
|
||||
if (**arg != ']') {
|
||||
semsg(_("E697: Missing end of List ']': %s"), *arg);
|
||||
semsg(_(e_list_end), *arg);
|
||||
failret:
|
||||
if (evaluate) {
|
||||
tv_list_free(l);
|
||||
|
Reference in New Issue
Block a user