view src/po/tojavascript.vim @ 33974:730a3ddebdd2 v9.0.2176

patch 9.0.2175: Compile error with Motif UI + mouse support Commit: https://github.com/vim/vim/commit/18d0d29b420543efd4938619d821df7b67988de5 Author: Ken Takata <kentkt@csc.jp> Date: Tue Dec 19 20:12:29 2023 +0100 patch 9.0.2175: Compile error with Motif UI + mouse support Problem: Compile error with Motif UI + mouse support (after v9.0.1262) Solution: Use correct oldval option pointer Fix compilation error introduced by 9.0.1262 and found in #13704. closes: #13726 Signed-off-by: Ken Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Dec 2023 20:15:06 +0100
parents 695b50472e85
children 04563887d70e
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, also after :set commands.
  g/^\s*"/s/.*//
  g/^\s*set .*"/s/.*//

  " Write as .js file, xgettext recognizes them
  exe 'w! ' .. fnamemodify(name, ":t:r") .. ".js"
endfor

quit