Mercurial > vim
view src/po/tojavascript.vim @ 29830:b5bd6521f417 v9.0.0254
patch 9.0.0254: typo in function name
Commit: https://github.com/vim/vim/commit/5fb3aabc2b0edd5573e107bb3bc103c348771f61
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Aug 24 16:48:23 2022 +0100
patch 9.0.0254: typo in function name
Problem: Typo in function name.
Solution: Rename the function. (closes https://github.com/vim/vim/issues/10971)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 Aug 2022 18:00:05 +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