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/ncf.vim | 71 ++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 40 deletions(-) (limited to 'runtime/syntax/ncf.vim') diff --git a/runtime/syntax/ncf.vim b/runtime/syntax/ncf.vim index 2019c03723..b458e630f2 100644 --- a/runtime/syntax/ncf.vim +++ b/runtime/syntax/ncf.vim @@ -4,10 +4,8 @@ " Last Change: Tue, 04 Sep 2001 16:20:33 CDT " $Id: ncf.vim,v 1.1 2004/06/13 16:31:58 vimboss Exp $ -" Remove any old syntax stuff hanging around -if version < 600 - syn clear -elseif exists("b:current_syntax") +" quit when a syntax file was already loaded +if exists("b:current_syntax") finish endif @@ -217,42 +215,35 @@ if exists("ncf_highlight_unknowns") syn match Error "[^ \t]*" contains=ALL endif -if version >= 508 || !exists("did_ncf_syntax_inits") - if version < 508 - let did_ncf_syntax_inits = 1 - command -nargs=+ HiLink hi link - else - command -nargs=+ HiLink hi def link - endif +command -nargs=+ HiLink hi def link + +" The default methods for highlighting. Can be overridden later +HiLink ncfCommands Statement +HiLink ncfSetCommands ncfCommands +HiLink ncfLogins ncfCommands +HiLink ncfString String +HiLink ncfContString ncfString +HiLink ncfComment Comment +HiLink ncfImplicit Type +HiLink ncfBoolean Boolean +HiLink ncfScript Identifier +HiLink ncfNumber Number +HiLink ncfIPAddr ncfNumber +HiLink ncfHexNumber ncfNumber +HiLink ncfTime ncfNumber +HiLink ncfDSTTime ncfNumber +HiLink ncfPath Constant +HiLink ncfServerName Special +HiLink ncfIPXNet ncfServerName +HiLink ncfTimeTypes Constant +HiLink ncfSetCommandsNum ncfSetCommands +HiLink ncfSetCommandsBool ncfSetCommands +HiLink ncfSetCommandsStr ncfSetCommands +HiLink ncfSetCommandsTime ncfSetCommands +HiLink ncfSetCommandsTimeDate ncfSetCommands +HiLink ncfSetCommandsBindCon ncfSetCommands + +delcommand HiLink - " The default methods for highlighting. Can be overridden later - HiLink ncfCommands Statement - HiLink ncfSetCommands ncfCommands - HiLink ncfLogins ncfCommands - HiLink ncfString String - HiLink ncfContString ncfString - HiLink ncfComment Comment - HiLink ncfImplicit Type - HiLink ncfBoolean Boolean - HiLink ncfScript Identifier - HiLink ncfNumber Number - HiLink ncfIPAddr ncfNumber - HiLink ncfHexNumber ncfNumber - HiLink ncfTime ncfNumber - HiLink ncfDSTTime ncfNumber - HiLink ncfPath Constant - HiLink ncfServerName Special - HiLink ncfIPXNet ncfServerName - HiLink ncfTimeTypes Constant - HiLink ncfSetCommandsNum ncfSetCommands - HiLink ncfSetCommandsBool ncfSetCommands - HiLink ncfSetCommandsStr ncfSetCommands - HiLink ncfSetCommandsTime ncfSetCommands - HiLink ncfSetCommandsTimeDate ncfSetCommands - HiLink ncfSetCommandsBindCon ncfSetCommands - - delcommand HiLink - -endif let b:current_syntax = "ncf" -- 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/ncf.vim | 52 ++++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 27 deletions(-) (limited to 'runtime/syntax/ncf.vim') diff --git a/runtime/syntax/ncf.vim b/runtime/syntax/ncf.vim index b458e630f2..0027fd4ef8 100644 --- a/runtime/syntax/ncf.vim +++ b/runtime/syntax/ncf.vim @@ -215,35 +215,33 @@ if exists("ncf_highlight_unknowns") syn match Error "[^ \t]*" contains=ALL endif -command -nargs=+ HiLink hi def link " The default methods for highlighting. Can be overridden later -HiLink ncfCommands Statement -HiLink ncfSetCommands ncfCommands -HiLink ncfLogins ncfCommands -HiLink ncfString String -HiLink ncfContString ncfString -HiLink ncfComment Comment -HiLink ncfImplicit Type -HiLink ncfBoolean Boolean -HiLink ncfScript Identifier -HiLink ncfNumber Number -HiLink ncfIPAddr ncfNumber -HiLink ncfHexNumber ncfNumber -HiLink ncfTime ncfNumber -HiLink ncfDSTTime ncfNumber -HiLink ncfPath Constant -HiLink ncfServerName Special -HiLink ncfIPXNet ncfServerName -HiLink ncfTimeTypes Constant -HiLink ncfSetCommandsNum ncfSetCommands -HiLink ncfSetCommandsBool ncfSetCommands -HiLink ncfSetCommandsStr ncfSetCommands -HiLink ncfSetCommandsTime ncfSetCommands -HiLink ncfSetCommandsTimeDate ncfSetCommands -HiLink ncfSetCommandsBindCon ncfSetCommands - -delcommand HiLink +hi def link ncfCommands Statement +hi def link ncfSetCommands ncfCommands +hi def link ncfLogins ncfCommands +hi def link ncfString String +hi def link ncfContString ncfString +hi def link ncfComment Comment +hi def link ncfImplicit Type +hi def link ncfBoolean Boolean +hi def link ncfScript Identifier +hi def link ncfNumber Number +hi def link ncfIPAddr ncfNumber +hi def link ncfHexNumber ncfNumber +hi def link ncfTime ncfNumber +hi def link ncfDSTTime ncfNumber +hi def link ncfPath Constant +hi def link ncfServerName Special +hi def link ncfIPXNet ncfServerName +hi def link ncfTimeTypes Constant +hi def link ncfSetCommandsNum ncfSetCommands +hi def link ncfSetCommandsBool ncfSetCommands +hi def link ncfSetCommandsStr ncfSetCommands +hi def link ncfSetCommandsTime ncfSetCommands +hi def link ncfSetCommandsTimeDate ncfSetCommands +hi def link ncfSetCommandsBindCon ncfSetCommands + let b:current_syntax = "ncf" -- cgit