Mercurial > vim
view src/po/tojavascript.vim @ 26709:0c5daf5e5514 v8.2.3883
patch 8.2.3883: crash when switching to other regexp engine fails
Commit: https://github.com/vim/vim/commit/5937c7505f444dd896f336fa0119a93a55ebe9a2
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 24 16:46:14 2021 +0000
patch 8.2.3883: crash when switching to other regexp engine fails
Problem: Crash when switching to other regexp engine fails.
Solution: Check for regprog being NULL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 Dec 2021 18:00:03 +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