Mercurial > vim
view src/po/tojavascript.vim @ 31958:b08c410578a5 v9.0.1311
patch 9.0.1311: Coverity warns for using a NULL pointer
Commit: https://github.com/vim/vim/commit/339e114d70de3ec2b36edf37d7ba7a7cfdf9d1a6
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 15 14:26:25 2023 +0000
patch 9.0.1311: Coverity warns for using a NULL pointer
Problem: Coverity warns for using a NULL pointer.
Solution: Use "empty_option" instead of NULL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 15 Feb 2023 15:30:05 +0100 |
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