Mercurial > vim
comparison src/vim9compile.c @ 20015:c001ee73519a v8.2.0563
patch 8.2.0563: Vim9: cannot split a function line
Commit: https://github.com/vim/vim/commit/5e774c7579a4a00d3f44fdcfcb56861bd73372e4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 12 21:53:00 2020 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Apr 2020 22:00:04 +0200 |
parents | bf377a9ffccb |
children | e9af5a09a55b |
comparison
equal
deleted
inserted
replaced
20014:1609b2b2733d | 20015:c001ee73519a |
---|---|
3273 */ | 3273 */ |
3274 case '{': { | 3274 case '{': { |
3275 char_u *start = skipwhite(*arg + 1); | 3275 char_u *start = skipwhite(*arg + 1); |
3276 | 3276 |
3277 // Find out what comes after the arguments. | 3277 // Find out what comes after the arguments. |
3278 // TODO: pass getline function | |
3278 ret = get_function_args(&start, '-', NULL, | 3279 ret = get_function_args(&start, '-', NULL, |
3279 NULL, NULL, NULL, TRUE); | 3280 NULL, NULL, NULL, TRUE, NULL, NULL); |
3280 if (ret != FAIL && *start == '>') | 3281 if (ret != FAIL && *start == '>') |
3281 ret = compile_lambda(arg, cctx); | 3282 ret = compile_lambda(arg, cctx); |
3282 else | 3283 else |
3283 ret = compile_dict(arg, cctx, FALSE); | 3284 ret = compile_dict(arg, cctx, FALSE); |
3284 } | 3285 } |