comparison src/list.c @ 23877:85cf06ddb2a8 v8.2.2480

patch 8.2.2480: Vim9: some errors for white space do not show context Commit: https://github.com/vim/vim/commit/c3fc75db023f2acd0b82b7eebffd7ed89e8001ed Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 15:28:09 2021 +0100 patch 8.2.2480: 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 15:30:03 +0100
parents 525c9e218c69
children d95403445b6b
comparison
equal deleted inserted replaced
23876:50f3627e6740 23877:85cf06ddb2a8
1309 had_comma = **arg == ','; 1309 had_comma = **arg == ',';
1310 if (had_comma) 1310 if (had_comma)
1311 { 1311 {
1312 if (vim9script && !IS_WHITE_OR_NUL((*arg)[1]) && (*arg)[1] != ']') 1312 if (vim9script && !IS_WHITE_OR_NUL((*arg)[1]) && (*arg)[1] != ']')
1313 { 1313 {
1314 semsg(_(e_white_space_required_after_str), ","); 1314 semsg(_(e_white_space_required_after_str_str), ",", *arg);
1315 goto failret; 1315 goto failret;
1316 } 1316 }
1317 *arg = skipwhite(*arg + 1); 1317 *arg = skipwhite(*arg + 1);
1318 } 1318 }
1319 1319