robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqMerge pull request #20832 from zeertzjq/vim-8.2.1544685ff3ee72

master
329 B13 linesraw
1" Invoked with the name "vim.pot" and a list of Vim script names.
2" Converts them to a .js file, stripping comments, so that xgettext works.
3
4set shortmess+=A
5
6for name in argv()[1:]
7  let jsname = fnamemodify(name, ":t:r") .. ".js"
8  exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+"
9endfor
10
11write
12last
13quit