From a53409b564458f7a94c8fcd0725d1953dee58dce Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 28 Apr 2017 21:06:44 +0200 Subject: vim-patch:89bcfda6834a Updated runtime files. Remove version checks for Vim older than 6.0. https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 --- runtime/syntax/diva.vim | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) (limited to 'runtime/syntax/diva.vim') diff --git a/runtime/syntax/diva.vim b/runtime/syntax/diva.vim index 78668fd85a..02fc46dcbb 100644 --- a/runtime/syntax/diva.vim +++ b/runtime/syntax/diva.vim @@ -11,11 +11,7 @@ " Don't remove any old syntax stuff hanging around! We need stuff " from skill.vim. if !exists("did_skill_syntax_inits") - if version < 600 - so :p:h/skill.vim - else - runtime! syntax/skill.vim - endif + runtime! syntax/skill.vim endif syn keyword divaDRCKeywords area enc notch ovlp sep width @@ -81,29 +77,21 @@ syn match divaGeomFunctions "(geom\u\a\+\(45\|90\)\=\>"hs=s+1 syn match divaGeomFunctions "\= 508 || !exists("did_diva_syntax_inits") - if version < 508 - let did_diva_syntax_inits = 1 - command -nargs=+ HiLink hi link - else - command -nargs=+ HiLink hi def link - endif +" Only when an item doesn't have highlighting yet +command -nargs=+ HiLink hi def link - HiLink divaDRCKeywords Statement - HiLink divaMeasKeywords Statement - HiLink divaCtrlFunctions Conditional - HiLink divaExtFunctions Function - HiLink divaDRCFunctions Function - HiLink divaFunctions Function - HiLink divaLayerFunctions Function - HiLink divaChkFunctions Function - HiLink divaLVSFunctions Function - HiLink divaGeomFunctions Function +HiLink divaDRCKeywords Statement +HiLink divaMeasKeywords Statement +HiLink divaCtrlFunctions Conditional +HiLink divaExtFunctions Function +HiLink divaDRCFunctions Function +HiLink divaFunctions Function +HiLink divaLayerFunctions Function +HiLink divaChkFunctions Function +HiLink divaLVSFunctions Function +HiLink divaGeomFunctions Function - delcommand HiLink -endif +delcommand HiLink let b:current_syntax = "diva" -- cgit From 86b596dc7a49f1b148ef82a356b972b93ed0f6d4 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 28 Apr 2017 21:14:34 +0200 Subject: vim-patch:f37506f60f87 Updated runtime files. Remove HiLink commands. https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c --- runtime/syntax/diva.vim | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'runtime/syntax/diva.vim') diff --git a/runtime/syntax/diva.vim b/runtime/syntax/diva.vim index 02fc46dcbb..127a0b4663 100644 --- a/runtime/syntax/diva.vim +++ b/runtime/syntax/diva.vim @@ -78,20 +78,18 @@ syn match divaGeomFunctions "\ -HiLink divaDRCKeywords Statement -HiLink divaMeasKeywords Statement -HiLink divaCtrlFunctions Conditional -HiLink divaExtFunctions Function -HiLink divaDRCFunctions Function -HiLink divaFunctions Function -HiLink divaLayerFunctions Function -HiLink divaChkFunctions Function -HiLink divaLVSFunctions Function -HiLink divaGeomFunctions Function +hi def link divaDRCKeywords Statement +hi def link divaMeasKeywords Statement +hi def link divaCtrlFunctions Conditional +hi def link divaExtFunctions Function +hi def link divaDRCFunctions Function +hi def link divaFunctions Function +hi def link divaLayerFunctions Function +hi def link divaChkFunctions Function +hi def link divaLVSFunctions Function +hi def link divaGeomFunctions Function -delcommand HiLink let b:current_syntax = "diva" -- cgit