view ci/if_ver-cmd.vim @ 24174:99bfaa4693db v8.2.2628

patch 8.2.2628: Vim9: #{ can still be used at the script level Commit: https://github.com/vim/vim/commit/5c7a299c1652b28977c30e3e3a5ab93c65e7f7ed Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 20 13:29:38 2021 +0100 patch 8.2.2628: Vim9: #{ can still be used at the script level Problem: Vim9: #{ can still be used at the script level. Solution: Give an error for #{ like in a :def function.
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Mar 2021 13:30: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>)