0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.1889: Vim9: errornous error for missing white space after {}

Problem:    Vim9: errornous error for missing white space after {}.
Solution:   Don't skip over white space after {}. (issue #7167)
This commit is contained in:
Bram Moolenaar 2020-10-22 19:00:01 +02:00
parent e6e70a10f1
commit b07a39de48
3 changed files with 9 additions and 1 deletions

View File

@ -950,7 +950,7 @@ failret:
return FAIL;
}
*arg = skipwhite(*arg + 1);
*arg = *arg + 1;
if (evaluate)
rettv_dict_set(rettv, d);

View File

@ -1124,6 +1124,12 @@ def Test_expr5_vim9script()
END
CheckScriptFailure(lines, 'E15:', 2)
lines =<< trim END
vim9script
echo {} - 22
END
CheckScriptFailure(lines, 'E731:', 2)
lines =<< trim END
vim9script
echo 'abc' is? 'abc'

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1889,
/**/
1888,
/**/