annotate runtime/compiler/standard.vim @ 23531:f39a18a42aed
v8.2.2308
patch 8.2.2308: Vim9: no error when assigning lambda to funcref
Commit: https://github.com/vim/vim/commit/328eac2b5d1569c57e1130ecb9f7cca733b84d78
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 7 19:23:08 2021 +0100
patch 8.2.2308: Vim9: no error when assigning lambda to funcref
Problem: Vim9: no error when assigning lambda to funcref without return
value.
Solution: Default return value to "any". (closes #7629)
author |
Bram Moolenaar <Bram@vim.org> |
date |
Thu, 07 Jan 2021 19:30:06 +0100 |
parents |
bbca88cd13d5 |
children |
e1df51f68736 |
rev |
line source |
20552
|
1 " Vim compiler file
|
|
2 " Compiler: Standard for JavaScript
|
|
3 " Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
21991
|
4 " Last Change: 2020 August 20
|
20552
|
5
|
|
6 if exists("current_compiler")
|
|
7 finish
|
|
8 endif
|
|
9 let current_compiler = "standard"
|
|
10
|
|
11 if exists(":CompilerSet") != 2
|
|
12 command -nargs=* CompilerSet setlocal <args>
|
|
13 endif
|
|
14
|
21991
|
15 CompilerSet makeprg=npx\ standard
|
|
16 CompilerSet errorformat=%f:%l:%c:\ %m,%-G%.%#
|