0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0563: Vim9: cannot split a function line

Problem:    Vim9: cannot split a function line.
Solution:   Continue in next line so long as the function isn't done.
This commit is contained in:
Bram Moolenaar
2020-04-12 21:53:00 +02:00
parent 9c7e6dd653
commit 5e774c7579
6 changed files with 69 additions and 12 deletions

View File

@@ -3275,8 +3275,9 @@ compile_expr7(char_u **arg, cctx_T *cctx)
char_u *start = skipwhite(*arg + 1);
// Find out what comes after the arguments.
// TODO: pass getline function
ret = get_function_args(&start, '-', NULL,
NULL, NULL, NULL, TRUE);
NULL, NULL, NULL, TRUE, NULL, NULL);
if (ret != FAIL && *start == '>')
ret = compile_lambda(arg, cctx);
else