Mercurial > vim
view ci/if_ver-cmd.vim @ 27968:40c6e5f849dc v8.2.4509
patch 8.2.4509: Vim9: can declare a variable with ":va"
Commit: https://github.com/vim/vim/commit/e1d1211799bc37c063666e97437cf4e9af4782b0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 5 11:37:48 2022 +0000
patch 8.2.4509: Vim9: can declare a variable with ":va"
Problem: Vim9: can declare a variable with ":va".
Solution: Disallow using ":va", require using ":var".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Mar 2022 12:45:03 +0100 |
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>)