Mercurial > vim
comparison src/testdir/test_vim9_func.vim @ 21263:71bd2f9adb61 v8.2.1182
patch 8.2.1182: Vim9: no check for whitespace after comma in lambda
Commit: https://github.com/vim/vim/commit/914e7eaa67f8d816e15fb4a1180e6bece88d9742
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 11 15:20:48 2020 +0200
patch 8.2.1182: Vim9: no check for whitespace after comma in lambda
Problem: Vim9: no check for whitespace after comma in lambda.
Solution: Give error if white space is missing.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 Jul 2020 15:30:04 +0200 |
parents | 09377fd59b2e |
children | 6a4806e326dd |
comparison
equal
deleted
inserted
replaced
21262:f90a8e001d61 | 21263:71bd2f9adb61 |
---|---|
965 assert_equal('full', Line_continuation_in_def('.')) | 965 assert_equal('full', Line_continuation_in_def('.')) |
966 enddef | 966 enddef |
967 | 967 |
968 def Line_continuation_in_lambda(): list<number> | 968 def Line_continuation_in_lambda(): list<number> |
969 let x = range(97, 100) | 969 let x = range(97, 100) |
970 ->map({_,v -> nr2char(v) | 970 ->map({_, v -> nr2char(v) |
971 ->toupper()}) | 971 ->toupper()}) |
972 ->reverse() | 972 ->reverse() |
973 return x | 973 return x |
974 enddef | 974 enddef |
975 | 975 |