Mercurial > vim
view ci/if_ver-cmd.vim @ 20504:7fb80f486aad v8.2.0806
patch 8.2.0806: using "func!" after vim9script gives confusing error
Commit: https://github.com/vim/vim/commit/74fae513f8032cfa9e129eedc33454f0bf68668b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 21 21:50:58 2020 +0200
patch 8.2.0806: using "func!" after vim9script gives confusing error
Problem: using "func!" after vim9script gives confusing error.
Solution: Give E477. (closes https://github.com/vim/vim/issues/6107)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 21 May 2020 22:00:03 +0200 |
parents | 27ff44268da5 |
children |
line wrap: on
line source
" Provide 'PrintVer' command to print the interface versions. func s:print_ver(lang, ...) if has(a:lang) exec a:lang join(a:000) else echo 'N/A' endif echo '' endfunc command -nargs=+ PrintVer call <SID>print_ver(<f-args>)