Mercurial > vim
comparison src/dict.c @ 23703:6bfb302d8392 v8.2.2393
patch 8.2.2393: Vim9: error message when script line starts with "[{"
Commit: https://github.com/vim/vim/commit/4bce26bb70144633713e7e8f149ba99cac511336
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 22 22:06:56 2021 +0100
patch 8.2.2393: Vim9: error message when script line starts with "[{"
Problem: Vim9: error message when script line starts with "[{".
Solution: Do not give an error for checking for end of list.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 22 Jan 2021 22:15:04 +0100 |
parents | d2b1269c2c68 |
children | 7e0d8f1cae7d |
comparison
equal
deleted
inserted
replaced
23702:48f0d00b5e46 | 23703:6bfb302d8392 |
---|---|
1030 } | 1030 } |
1031 } | 1031 } |
1032 | 1032 |
1033 if (**arg != '}') | 1033 if (**arg != '}') |
1034 { | 1034 { |
1035 semsg(_(e_missing_dict_end), *arg); | 1035 if (evalarg != NULL) |
1036 semsg(_(e_missing_dict_end), *arg); | |
1036 failret: | 1037 failret: |
1037 if (d != NULL) | 1038 if (d != NULL) |
1038 dict_free(d); | 1039 dict_free(d); |
1039 return FAIL; | 1040 return FAIL; |
1040 } | 1041 } |