Mercurial > vim
comparison src/list.c @ 19826:293a22b677a8 v8.2.0469
patch 8.2.0469: Vim9: no error for missing ] after list
Commit: https://github.com/vim/vim/commit/ee619e5bc0992e818f2d9540b093b769b9c27651
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 28 21:38:06 2020 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 28 Mar 2020 21:45:06 +0100 |
parents | 04c164c971a3 |
children | 435726a03481 |
comparison
equal
deleted
inserted
replaced
19825:17feab93763a | 19826:293a22b677a8 |
---|---|
1081 } | 1081 } |
1082 | 1082 |
1083 if (**arg != ']') | 1083 if (**arg != ']') |
1084 { | 1084 { |
1085 if (do_error) | 1085 if (do_error) |
1086 semsg(_("E697: Missing end of List ']': %s"), *arg); | 1086 semsg(_(e_list_end), *arg); |
1087 failret: | 1087 failret: |
1088 if (evaluate) | 1088 if (evaluate) |
1089 list_free(l); | 1089 list_free(l); |
1090 return FAIL; | 1090 return FAIL; |
1091 } | 1091 } |