view runtime/syntax/generator/update_date.vim @ 34353:da420cabb018

runtime(vim): update Vim Syntax generator Commit: https://github.com/vim/vim/commit/5c3855bcab425be39e2934fede14d1124466c55a Author: h-east <h.east.727@gmail.com> Date: Wed Feb 14 21:00:01 2024 +0100 runtime(vim): update Vim Syntax generator - Add missing "Last Change:" line. - The date on this line in vim.vim is updated by update_date.vim at Make time. (I made a mistake in the file path) - Remove unnecessary "b:loaded_syntax_vim_ex". - Remove "Base File Date:" line in vim.vim.base - Add Doug Kearns as Maintainer closes: #14031 Signed-off-by: h-east <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 14 Feb 2024 21:15:03 +0100
parents 776cb5c73d6f
children 7375d8465b7e
line wrap: on
line source

" Update the date of following line in vim.vim.rc.
"     '" Last Change:  '
"
language C
silent new ../vim.vim
normal gg
let pat = '^"\s*Last\s*Change:\s\+'
let lnum = search(pat, 'We', 10)
if lnum > 0
   exec 'norm! lD"=strftime("%b %d, %Y")' . "\rp"
   silent update
endif
quitall!
" vim:ts=4 sw=4 et