diff runtime/syntax/spup.vim @ 10048:43efa4f5a8ea

commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 23:26:57 2016 +0200 Updated runtime files. Remove version checks for Vim older than 6.0.
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Aug 2016 23:30:09 +0200
parents b7811ab264bf
children 46763b01cd9a
line wrap: on
line diff
--- a/runtime/syntax/spup.vim
+++ b/runtime/syntax/spup.vim
@@ -17,11 +17,8 @@
 " If you encounter problems or have questions or suggestions, mail me
 
 " Remove old syntax stuff
-" 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
 
@@ -206,74 +203,66 @@ syn sync match spupSyncTitle      grouph
 syn sync match spupSyncUnit       grouphere spupUnit       "^UNIT"
 
 " 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_spup_syn_inits")
-    if version < 508
-	let did_spup_syn_inits = 1
-	command -nargs=+ HiLink hi link <args>
-    else
-	command -nargs=+ HiLink hi def link <args>
-    endif
+" Only when an item doesn't have highlighting yet
+command -nargs=+ HiLink hi def link <args>
 
-    HiLink spupCdi	    spupSection
-    HiLink spupConditions   spupSection
-    HiLink spupDeclare	    spupSection
-    HiLink spupEstimation   spupSection
-    HiLink spupExternal	    spupSection
-    HiLink spupFlowsheet    spupSection
-    HiLink spupFunction	    spupSection
-    HiLink spupGlobal	    spupSection
-    HiLink spupHomotopy	    spupSection
-    HiLink spupMacro	    spupSection
-    HiLink spupModel	    spupSection
-    HiLink spupOperation    spupSection
-    HiLink spupOptions	    spupSection
-    HiLink spupProcedure    spupSection
-    HiLink spupProfiles	    spupSection
-    HiLink spupReport	    spupSection
-    HiLink spupTitle	    spupConstant  " this is correct, truly ;)
-    HiLink spupUnit	    spupSection
+HiLink spupCdi	    spupSection
+HiLink spupConditions   spupSection
+HiLink spupDeclare	    spupSection
+HiLink spupEstimation   spupSection
+HiLink spupExternal	    spupSection
+HiLink spupFlowsheet    spupSection
+HiLink spupFunction	    spupSection
+HiLink spupGlobal	    spupSection
+HiLink spupHomotopy	    spupSection
+HiLink spupMacro	    spupSection
+HiLink spupModel	    spupSection
+HiLink spupOperation    spupSection
+HiLink spupOptions	    spupSection
+HiLink spupProcedure    spupSection
+HiLink spupProfiles	    spupSection
+HiLink spupReport	    spupSection
+HiLink spupTitle	    spupConstant  " this is correct, truly ;)
+HiLink spupUnit	    spupSection
 
-    HiLink spupCdiSubs	      spupSubs
-    HiLink spupConditionsSubs spupSubs
-    HiLink spupDeclareSubs    spupSubs
-    HiLink spupEstimationSubs spupSubs
-    HiLink spupExternalSubs   spupSubs
-    HiLink spupFlowsheetSubs  spupSubs
-    HiLink spupFunctionSubs   spupSubs
-    HiLink spupHomotopySubs   spupSubs
-    HiLink spupMacroSubs      spupSubs
-    HiLink spupModelSubs      spupSubs
-    HiLink spupOperationSubs  spupSubs
-    HiLink spupOptionsSubs    spupSubs
-    HiLink spupProcedureSubs  spupSubs
-    HiLink spupReportSubs     spupSubs
-    HiLink spupUnitSubs	      spupSubs
+HiLink spupCdiSubs	      spupSubs
+HiLink spupConditionsSubs spupSubs
+HiLink spupDeclareSubs    spupSubs
+HiLink spupEstimationSubs spupSubs
+HiLink spupExternalSubs   spupSubs
+HiLink spupFlowsheetSubs  spupSubs
+HiLink spupFunctionSubs   spupSubs
+HiLink spupHomotopySubs   spupSubs
+HiLink spupMacroSubs      spupSubs
+HiLink spupModelSubs      spupSubs
+HiLink spupOperationSubs  spupSubs
+HiLink spupOptionsSubs    spupSubs
+HiLink spupProcedureSubs  spupSubs
+HiLink spupReportSubs     spupSubs
+HiLink spupUnitSubs	      spupSubs
 
-    HiLink spupCode	       Normal
-    HiLink spupComment	       Comment
-    HiLink spupComment2	       spupComment
-    HiLink spupConditional     Statement
-    HiLink spupConstant	       Constant
-    HiLink spupError	       Error
-    HiLink spupHelp	       Normal
-    HiLink spupIdentifier      Identifier
-    HiLink spupNumber	       Constant
-    HiLink spupOperator	       Special
-    HiLink spupOpenBrace       spupError
-    HiLink spupSection	       Statement
-    HiLink spupSpecial	       spupTextprocGeneric
-    HiLink spupStreams	       Type
-    HiLink spupString	       Constant
-    HiLink spupSubs	       Statement
-    HiLink spupSymbol	       Special
-    HiLink spupTextprocError   Normal
-    HiLink spupTextprocGeneric PreProc
-    HiLink spupTypes	       Type
+HiLink spupCode	       Normal
+HiLink spupComment	       Comment
+HiLink spupComment2	       spupComment
+HiLink spupConditional     Statement
+HiLink spupConstant	       Constant
+HiLink spupError	       Error
+HiLink spupHelp	       Normal
+HiLink spupIdentifier      Identifier
+HiLink spupNumber	       Constant
+HiLink spupOperator	       Special
+HiLink spupOpenBrace       spupError
+HiLink spupSection	       Statement
+HiLink spupSpecial	       spupTextprocGeneric
+HiLink spupStreams	       Type
+HiLink spupString	       Constant
+HiLink spupSubs	       Statement
+HiLink spupSymbol	       Special
+HiLink spupTextprocError   Normal
+HiLink spupTextprocGeneric PreProc
+HiLink spupTypes	       Type
 
-    delcommand HiLink
-endif
+delcommand HiLink
 
 let b:current_syntax = "spup"