Mercurial > vim
view ci/if_ver-cmd.vim @ 20846:709379ab5110 v8.2.0975
patch 8.2.0975: Vim9: script variable does not accept optional s: prefix
Commit: https://github.com/vim/vim/commit/984dddbef421eda6b8ad60936f380c5f00aebb96
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 14 12:50:24 2020 +0200
patch 8.2.0975: Vim9: script variable does not accept optional s: prefix
Problem: Vim9: script variable does not accept optional s: prefix.
Solution: Adjust the accepted syntax.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Jun 2020 13:00:04 +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>)