view ci/if_ver-cmd.vim @ 21122:839ace6773aa v8.2.1112

patch 8.2.1112: Vim9: no line continuation allowed in method call Commit: https://github.com/vim/vim/commit/5f195938d4d489aa288bdb54ee6112a34aed1df9 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 1 20:07:14 2020 +0200 patch 8.2.1112: Vim9: no line continuation allowed in method call Problem: Vim9: no line continuation allowed in method call. Solution: Handle line continuation in expression before method call.
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Jul 2020 20:15: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>)