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/crontab.vim | 61 +++++++++++++++++++--------------------------- 1 file changed, 25 insertions(+), 36 deletions(-) (limited to 'runtime/syntax/crontab.vim') diff --git a/runtime/syntax/crontab.vim b/runtime/syntax/crontab.vim index fd1c30023f..ed20254925 100644 --- a/runtime/syntax/crontab.vim +++ b/runtime/syntax/crontab.vim @@ -10,11 +10,8 @@ " crontab line format: " Minutes Hours Days Months Days_of_Week Commands # comments -" For version 5.x: Clear all syntax items -" For version 6.x: Quit when a syntax file was already loaded -if version < 600 - syntax clear -elseif exists("b:current_syntax") +" quit when a syntax file was already loaded +if exists("b:current_syntax") finish endif @@ -39,41 +36,33 @@ syntax match crontabCmnt "^\s*#.*" contains=@Spell syntax match crontabPercent "[^\\]%.*"lc=1 contained " Define the default highlighting. -" For version 5.7 and earlier: only when not done already -" For version 5.8 and later: only when an item doesn't have highlighting yet -if version >= 508 || !exists("did_crontab_syn_inits") - if version < 508 - let did_crontab_syn_inits = 1 - command -nargs=+ HiLink hi link - else - command -nargs=+ HiLink hi def link - endif - - HiLink crontabMin Number - HiLink crontabHr PreProc - HiLink crontabDay Type - - HiLink crontabMnth Number - HiLink crontabMnth12 Number - HiLink crontabMnthS Number - HiLink crontabMnthN Number - - HiLink crontabDow PreProc - HiLink crontabDow7 PreProc - HiLink crontabDowS PreProc - HiLink crontabDowN PreProc - - HiLink crontabNick Special - HiLink crontabVar Identifier - HiLink crontabPercent Special +" Only when an item doesn't have highlighting yet +command -nargs=+ HiLink hi def link + +HiLink crontabMin Number +HiLink crontabHr PreProc +HiLink crontabDay Type + +HiLink crontabMnth Number +HiLink crontabMnth12 Number +HiLink crontabMnthS Number +HiLink crontabMnthN Number + +HiLink crontabDow PreProc +HiLink crontabDow7 PreProc +HiLink crontabDowS PreProc +HiLink crontabDowN PreProc + +HiLink crontabNick Special +HiLink crontabVar Identifier +HiLink crontabPercent Special " comment out next line for to suppress unix commands coloring. - HiLink crontabCmd Statement +HiLink crontabCmd Statement - HiLink crontabCmnt Comment +HiLink crontabCmnt Comment - delcommand HiLink -endif +delcommand HiLink let b:current_syntax = "crontab" -- 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/crontab.vim | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'runtime/syntax/crontab.vim') diff --git a/runtime/syntax/crontab.vim b/runtime/syntax/crontab.vim index ed20254925..5e38ffaafe 100644 --- a/runtime/syntax/crontab.vim +++ b/runtime/syntax/crontab.vim @@ -37,32 +37,30 @@ syntax match crontabPercent "[^\\]%.*"lc=1 contained " Define the default highlighting. " Only when an item doesn't have highlighting yet -command -nargs=+ HiLink hi def link -HiLink crontabMin Number -HiLink crontabHr PreProc -HiLink crontabDay Type +hi def link crontabMin Number +hi def link crontabHr PreProc +hi def link crontabDay Type -HiLink crontabMnth Number -HiLink crontabMnth12 Number -HiLink crontabMnthS Number -HiLink crontabMnthN Number +hi def link crontabMnth Number +hi def link crontabMnth12 Number +hi def link crontabMnthS Number +hi def link crontabMnthN Number -HiLink crontabDow PreProc -HiLink crontabDow7 PreProc -HiLink crontabDowS PreProc -HiLink crontabDowN PreProc +hi def link crontabDow PreProc +hi def link crontabDow7 PreProc +hi def link crontabDowS PreProc +hi def link crontabDowN PreProc -HiLink crontabNick Special -HiLink crontabVar Identifier -HiLink crontabPercent Special +hi def link crontabNick Special +hi def link crontabVar Identifier +hi def link crontabPercent Special " comment out next line for to suppress unix commands coloring. -HiLink crontabCmd Statement +hi def link crontabCmd Statement -HiLink crontabCmnt Comment +hi def link crontabCmnt Comment -delcommand HiLink let b:current_syntax = "crontab" -- cgit