mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
vim-patch:8.2.1073: Vim9: no line break allowed in () expression
Problem: Vim9: no line break allowed in () expression.
Solution: Skip a line break.
7a4981b936
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -3021,7 +3021,9 @@ static int eval7(char **arg, typval_T *rettv, evalarg_T *const evalarg, bool wan
|
|||||||
// nested expression: (expression).
|
// nested expression: (expression).
|
||||||
case '(':
|
case '(':
|
||||||
*arg = skipwhite(*arg + 1);
|
*arg = skipwhite(*arg + 1);
|
||||||
|
|
||||||
ret = eval1(arg, rettv, evalarg); // recursive!
|
ret = eval1(arg, rettv, evalarg); // recursive!
|
||||||
|
|
||||||
if (**arg == ')') {
|
if (**arg == ')') {
|
||||||
(*arg)++;
|
(*arg)++;
|
||||||
} else if (ret == OK) {
|
} else if (ret == OK) {
|
||||||
|
Reference in New Issue
Block a user