Mercurial > vim
view runtime/spell/check_locales.vim @ 25913:a63676a1da2b v8.2.3490
patch 8.2.3490: superfluous return statements
Commit: https://github.com/vim/vim/commit/3826c0513bc9370583be550c864358c7eeb5605a
Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Date: Sat Oct 9 15:39:25 2021 +0100
patch 8.2.3490: superfluous return statements
Problem: Superfluous return statements.
Solution: Remove superfluous return statements from void functions.
(closes #8977)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 09 Oct 2021 16:45:03 +0200 |
parents | ea3c3f13385c |
children |
line wrap: on
line source
" Script to check if all the locales used in spell files are available. grep /sys env LANG/ */main.aap let not_supported = [] for item in getqflist() let lang = substitute(item.text, '.*LANG=\(\S\+\).*', '\1', '') try exe 'lang ' . lang catch /E197/ call add(not_supported, lang) endtry endfor if len(not_supported) > 0 echo "Unsupported languages:" for l in not_supported echo l endfor else echo "Everything appears to be OK" endif