forked from aniani/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.
This commit is contained in:
@@ -1083,7 +1083,7 @@ get_list_tv(char_u **arg, typval_T *rettv, int evaluate, int do_error)
|
||||
if (**arg != ']')
|
||||
{
|
||||
if (do_error)
|
||||
semsg(_("E697: Missing end of List ']': %s"), *arg);
|
||||
semsg(_(e_list_end), *arg);
|
||||
failret:
|
||||
if (evaluate)
|
||||
list_free(l);
|
||||
|
||||
Reference in New Issue
Block a user