view src/po/fixfilenames.vim @ 31473:edd37b53405a v9.0.1069

patch 9.0.1069: diff mode highlight fails for special characters Commit: https://github.com/vim/vim/commit/417e88bb75ee8af1bf696760bba9f114a007f733 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 17 15:03:02 2022 +0000 patch 9.0.1069: diff mode highlight fails for special characters Problem: Diff mode highlight fails for special characters. Solution: Adjust condition for setting "diff_hlf".
author Bram Moolenaar <Bram@vim.org>
date Sat, 17 Dec 2022 16:15:03 +0100
parents aa91480771fe
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.

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