Mercurial > vim
view ci/if_ver-cmd.vim @ 31485:97aaede2b4e0 v9.0.1075
patch 9.0.1075: build fails if compiler doesn't allow declaration after case
Commit: https://github.com/vim/vim/commit/c336ae3ce60a2f047b72344ac827568606c5aa15
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 18 22:01:42 2022 +0000
patch 9.0.1075: build fails if compiler doesn't allow declaration after case
Problem: build fails if the compiler doesn't allow for a declaration right
after "case".
Solution: Add a block.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Dec 2022 23:15:02 +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>)