Mercurial > vim
diff src/userfunc.c @ 23368:a7cbdb9294c4 v8.2.2227
patch 8.2.2227: Vim9: recognizing lambda is too complicated
Commit: https://github.com/vim/vim/commit/e462f52db3cab656485a71e4322b6cb18d564a06
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 27 14:43:30 2020 +0100
patch 8.2.2227: Vim9: recognizing lambda is too complicated
Problem: Vim9: recognizing lambda is too complicated.
Solution: Call compile_lambda() and check for NOTDONE.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Dec 2020 14:45:03 +0100 |
parents | eb7d8f39363c |
children | 517fca70e084 |
line wrap: on
line diff
--- a/src/userfunc.c +++ b/src/userfunc.c @@ -570,7 +570,7 @@ get_lambda_tv( &varargs, NULL, FALSE, NULL, NULL); if (ret == FAIL || (s = skip_arrow(*arg, equal_arrow, &ret_type, - equal_arrow ? &white_error : NULL)) == NULL) + equal_arrow || in_vim9script() ? &white_error : NULL)) == NULL) { if (types_optional) ga_clear_strings(&argtypes);