comparison src/dict.c @ 23888:d95403445b6b v8.2.2486

patch 8.2.2486: Vim9: some errors for white space do not show context Commit: https://github.com/vim/vim/commit/ba98fb54aefada4c36390add4c7dd90b93e7e5bb Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 18:06:29 2021 +0100 patch 8.2.2486: Vim9: some errors for white space do not show context Problem: Vim9: some errors for white space do not show context. Solution: Include the text at the error.
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Feb 2021 18:15:05 +0100
parents 85cf06ddb2a8
children 4b417b776b95
comparison
equal deleted inserted replaced
23887:ee748fa7dcf5 23888:d95403445b6b
943 if (!vim9script) 943 if (!vim9script)
944 *arg = skipwhite(*arg); 944 *arg = skipwhite(*arg);
945 if (**arg != ':') 945 if (**arg != ':')
946 { 946 {
947 if (*skipwhite(*arg) == ':') 947 if (*skipwhite(*arg) == ':')
948 semsg(_(e_no_white_space_allowed_before_str), ":"); 948 semsg(_(e_no_white_space_allowed_before_str_str), ":", *arg);
949 else 949 else
950 semsg(_(e_missing_dict_colon), *arg); 950 semsg(_(e_missing_dict_colon), *arg);
951 clear_tv(&tvkey); 951 clear_tv(&tvkey);
952 goto failret; 952 goto failret;
953 } 953 }
1023 if (**arg == '}') 1023 if (**arg == '}')
1024 break; 1024 break;
1025 if (!had_comma) 1025 if (!had_comma)
1026 { 1026 {
1027 if (**arg == ',') 1027 if (**arg == ',')
1028 semsg(_(e_no_white_space_allowed_before_str), ","); 1028 semsg(_(e_no_white_space_allowed_before_str_str), ",", *arg);
1029 else 1029 else
1030 semsg(_(e_missing_dict_comma), *arg); 1030 semsg(_(e_missing_dict_comma), *arg);
1031 goto failret; 1031 goto failret;
1032 } 1032 }
1033 } 1033 }