comparison src/list.c @ 33193:256febd1cbf0 v9.0.1876

patch 9.0.1876: Vim9: parsing commands with newlines wrong Commit: https://github.com/vim/vim/commit/00cb247465856eaa546c520b65cf0ccc753ee1cd Author: Christian Brabandt <cb@256bit.org> Date: Tue Sep 5 20:46:25 2023 +0200 patch 9.0.1876: Vim9: parsing commands with newlines wrong Problem: Vim9: parsing commands with newlines wrong Solution: Accept a '\n' for parsing lists and command arguments closes: #13015 closes: #13020 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Sep 2023 21:00:03 +0200
parents 06562c9307dd
children 08f9e1eac4cf
comparison
equal deleted inserted replaced
33192:efd072489401 33193:256febd1cbf0
1590 1590
1591 // the comma must come after the value 1591 // the comma must come after the value
1592 had_comma = **arg == ','; 1592 had_comma = **arg == ',';
1593 if (had_comma) 1593 if (had_comma)
1594 { 1594 {
1595 if (vim9script && !IS_WHITE_OR_NUL((*arg)[1]) && (*arg)[1] != ']') 1595 if (vim9script && !IS_WHITE_NL_OR_NUL((*arg)[1]) && (*arg)[1] != ']')
1596 { 1596 {
1597 semsg(_(e_white_space_required_after_str_str), ",", *arg); 1597 semsg(_(e_white_space_required_after_str_str), ",", *arg);
1598 goto failret; 1598 goto failret;
1599 } 1599 }
1600 *arg = skipwhite(*arg + 1); 1600 *arg = skipwhite(*arg + 1);