view src/po/tojavascript.vim @ 28869:6a4edacbd178 v8.2.4957

patch 8.2.4957: text properties in a wrong position after a block change Commit: https://github.com/vim/vim/commit/b559b302e0ecc6fced03d5201dc30f10cff7af0a Author: LemonBoy <thatlemon@gmail.com> Date: Sun May 15 13:08:02 2022 +0100 patch 8.2.4957: text properties in a wrong position after a block change Problem: Text properties in a wrong position after a block change. Solution: Adjust the properties columns. (closes https://github.com/vim/vim/issues/10427)
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 May 2022 14:15:04 +0200
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