view src/po/tojavascript.vim @ 32303:71c5920fb43e v9.0.1483

patch 9.0.1483: += operator does not work on class member Commit: https://github.com/vim/vim/commit/22363c69945e48a7496f0ae00bc06235084ddd7a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 24 17:15:25 2023 +0100 patch 9.0.1483: += operator does not work on class member Problem: += operator does not work on class member. Solution: Do not skip as if "this." was used. (Christian Brabandt, closes #12263)
author Bram Moolenaar <Bram@vim.org>
date Mon, 24 Apr 2023 18:30: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