diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-30 23:26:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-30 23:26:57 +0200 |
commit | 89bcfda6834aba724d12554a34b9ed49f5789fd5 (patch) | |
tree | 2ffddcadaae9d061e38e17a09b2635ec199eb1dd /runtime/syntax/ampl.vim | |
parent | 4792255eff03760dca0fd014616532e6d47db364 (diff) | |
download | vim-git-89bcfda6834aba724d12554a34b9ed49f5789fd5.tar.gz |
Updated runtime files. Remove version checks for Vim older than 6.0.
Diffstat (limited to 'runtime/syntax/ampl.vim')
-rw-r--r-- | runtime/syntax/ampl.vim | 48 |
1 files changed, 20 insertions, 28 deletions
diff --git a/runtime/syntax/ampl.vim b/runtime/syntax/ampl.vim index 7f4dfa994..99a683a0f 100644 --- a/runtime/syntax/ampl.vim +++ b/runtime/syntax/ampl.vim @@ -3,9 +3,8 @@ " Last Change: 2003 May 11 -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 @@ -115,33 +114,26 @@ syn keyword amplTodo contained TODO FIXME XXX -if version >= 508 || !exists("did_ampl_syntax_inits") - if version < 508 - let did_ampl_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 amplEntityKeyword Keyword - HiLink amplType Type - HiLink amplStatement Statement - HiLink amplOperators Operator - HiLink amplBasicOperators Operator - HiLink amplConditional Conditional - HiLink amplRepeat Repeat - HiLink amplStrings String - HiLink amplNumerics Number - HiLink amplSetFunction Function - HiLink amplBuiltInFunction Function - HiLink amplRandomGenerator Function - HiLink amplComment Comment - HiLink amplDotSuffix Special - HiLink amplPiecewise Special +" The default methods for highlighting. Can be overridden later. +HiLink amplEntityKeyword Keyword +HiLink amplType Type +HiLink amplStatement Statement +HiLink amplOperators Operator +HiLink amplBasicOperators Operator +HiLink amplConditional Conditional +HiLink amplRepeat Repeat +HiLink amplStrings String +HiLink amplNumerics Number +HiLink amplSetFunction Function +HiLink amplBuiltInFunction Function +HiLink amplRandomGenerator Function +HiLink amplComment Comment +HiLink amplDotSuffix Special +HiLink amplPiecewise Special - delcommand HiLink -endif +delcommand HiLink let b:current_syntax = "ampl" |