diff options
Diffstat (limited to 'runtime/syntax/ncf.vim')
-rw-r--r-- | runtime/syntax/ncf.vim | 71 |
1 files changed, 31 insertions, 40 deletions
diff --git a/runtime/syntax/ncf.vim b/runtime/syntax/ncf.vim index 2019c0372..b458e630f 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 <args> - else - command -nargs=+ HiLink hi def link <args> - endif +command -nargs=+ HiLink hi def link <args> + +" 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" |