Mercurial > vim
diff src/testdir/test_vim9_func.vim @ 21630:3c6c52fbc8ea v8.2.1365
patch 8.2.1365: Vim9: no error for missing white space around operator
Commit: https://github.com/vim/vim/commit/bb1b5e24ecc0abe1fee164e9de13796989eff784
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 5 10:53:21 2020 +0200
patch 8.2.1365: Vim9: no error for missing white space around operator
Problem: Vim9: no error for missing white space around operator.
Solution: Check for white space. (closes https://github.com/vim/vim/issues/6618)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Aug 2020 11:00:08 +0200 |
parents | d9c45474cac1 |
children | 9a2ce62b93e9 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -1270,7 +1270,7 @@ enddef def TreeWalk(dir: string): list<any> return readdir(dir)->map({_, val -> fnamemodify(dir .. '/' .. val, ':p')->isdirectory() - ? {val : TreeWalk(dir .. '/' .. val)} + ? {val: TreeWalk(dir .. '/' .. val)} : val }) enddef