Mercurial > vim
changeset 21467:49072a858baf v8.2.1284
patch 8.2.1284: Vim9: skipping over type includes following white space
Commit: https://github.com/vim/vim/commit/bfba8651a51b66fdc52848f32c77aa925586e250
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 23 20:09:10 2020 +0200
patch 8.2.1284: Vim9: skipping over type includes following white space
Problem: Vim9: skipping over type includes following white space, leading
to an error for missing white space.
Solution: Do not skip over white space after the type.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Jul 2020 20:15:04 +0200 |
parents | f5f1759ddcf4 |
children | df10f1df515d |
files | src/testdir/test_vim9_func.vim src/version.c src/vim9compile.c |
diffstat | 3 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -283,6 +283,16 @@ def Test_call_funcref() assert_equal(123, Bar(Funcref)) END CheckScriptSuccess(lines) + + lines =<< trim END + vim9script + def UseNumber(nr: number) + echo nr + enddef + let Funcref: func(number) = function('UseNumber') + Funcref(123) + END + CheckScriptSuccess(lines) enddef let SomeFunc = function('len')