Mercurial > vim
view src/po/tojavascript.vim @ 22520:107ef099fd57 v8.2.1808
patch 8.2.1808: no test coverage for ":spelldump!"
Commit: https://github.com/vim/vim/commit/f12f0022e6698831681f0931a4e7e5298f6ef0d8
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 7 12:58:44 2020 +0200
patch 8.2.1808: no test coverage for ":spelldump!"
Problem: No test coverage for ":spelldump!".
Solution: Add a test. (Dominique Pell?, closes https://github.com/vim/vim/issues/7089)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 07 Oct 2020 13:00:04 +0200 |
parents | 52e970719f4b |
children | 7296f4ef3ead |
line wrap: on
line source
" Invoked with the name "vim.pot" and a list of Vim script names. " Converts them to a .js file, stripping comments, so that xgettext works. " Javascript is used because, like Vim, it accepts both single and double " quoted strings. set shortmess+=A for name in argv()[1:] exe 'edit ' .. fnameescape(name) " Strip comments g/^\s*"/s/.*// " Write as .js file, xgettext recognizes them exe 'w! ' .. fnamemodify(name, ":t:r") .. ".js" endfor quit