1
0
forked from aniani/vim

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>
This commit is contained in:
h-east
2024-02-14 21:00:01 +01:00
committed by Christian Brabandt
parent b1700fb33f
commit 5c3855bcab
5 changed files with 18 additions and 8 deletions

View File

@@ -16,7 +16,6 @@ vim.vim: vim.vim.rc update_date.vim
@echo "Generating vim.vim ..."
@cp -f vim.vim.rc ../vim.vim
@$(RUN_VIM) -S update_date.vim
@sed -i -e 's/__REVISION__/$(REVISION)/' ../vim.vim
@echo "done."
vim.vim.rc: gen_syntax_vim.vim vim.vim.base $(SRC)

View File

@@ -248,6 +248,7 @@ function! s:parse_vim_command(cmd)
let item.syn_str = item.name
call add(a:cmd, copy(item))
let item.name = 'i' " insert
let item.syn_str = item.name
call add(a:cmd, copy(item))
if empty(a:cmd)
@@ -445,6 +446,16 @@ function! s:parse_vim_hlgroup(li)
let item.type = 'gui'
call add(a:li, copy(item))
" The following highlight groups cannot be extracted from highlight.c
" (TODO: extract from HIGHLIGHT_INIT ?)
let item.name = 'LineNrAbove'
let item.type = 'both'
call add(a:li, copy(item))
let item.name = 'LineNrBelow'
let item.type = 'both'
call add(a:li, copy(item))
quit!
if empty(a:li)

View File

@@ -2,7 +2,7 @@
" '" Last Change: '
"
language C
silent new vim.vim
silent new ../vim.vim
normal gg
let pat = '^"\s*Last\s*Change:\s\+'
let lnum = search(pat, 'We', 10)

View File

@@ -1,11 +1,12 @@
" Vim syntax file
" Language: Vim script
" Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com>
" Doug Kearns <dougkearns@gmail.com>
" URL: https://github.com/vim-jp/syntax-vim-ex
" Last Change: Feb 13, 2024
" Former Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
" Base File URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_VIM
" Base File Version: 9.0-25
" Base File Date: May 09, 2023
" DO NOT CHANGE DIRECTLY.
" THIS FILE PARTLY GENERATED BY gen_syntax_vim.vim.
@@ -17,7 +18,6 @@
if exists("b:current_syntax")
finish
endif
let b:loaded_syntax_vim_ex="__REVISION__"
let s:keepcpo= &cpo
set cpo&vim