view src/po/fixfilenames.vim @ 27472:55613f0d59bc v8.2.4264

patch 8.2.4264: Vim9: can use old style autoload function name Commit: https://github.com/vim/vim/commit/d8fe6d34bb582438142d7c1f73d0bd8537bb3a7a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 30 18:40:44 2022 +0000 patch 8.2.4264: Vim9: can use old style autoload function name Problem: Vim9: can use old style autoload function name. Solution: Give an error for old style autoload function name.
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 Jan 2022 19:45:03 +0100
parents aa91480771fe
children
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.

set shortmess+=A

for name in argv()[1:]
  let jsname = fnamemodify(name, ":t:r") .. ".js"
  exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+"
endfor

write
last
quit