view src/po/tojavascript.vim @ 31881:df061831a85f v9.0.1273

patch 9.0.1273: "1v" may select block with wrong size Commit: https://github.com/vim/vim/commit/8f531662e28c37560bf5ac20a059bf00d01ee5a4 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 1 17:33:18 2023 +0000 patch 9.0.1273: "1v" may select block with wrong size Problem: "1v" may select block with wrong size. (Evgeni Chasnovski) Solution: Compute "curswant" in the right line. (closes https://github.com/vim/vim/issues/11925)
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Feb 2023 18:45:04 +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