mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
@@ -950,7 +950,7 @@ failret:
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
*arg = skipwhite(*arg + 1);
|
||||
*arg = *arg + 1;
|
||||
if (evaluate)
|
||||
rettv_dict_set(rettv, d);
|
||||
|
||||
|
@@ -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'
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1889,
|
||||
/**/
|
||||
1888,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user