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/ampl.vim | 48 ++++++++++++++++++++---------------------------- 1 file changed, 20 insertions(+), 28 deletions(-) (limited to 'runtime/syntax/ampl.vim') diff --git a/runtime/syntax/ampl.vim b/runtime/syntax/ampl.vim index 7f4dfa9942..99a683a0f4 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 - else - command -nargs=+ HiLink hi def link - endif +command -nargs=+ HiLink hi def link - " 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" -- 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/ampl.vim | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'runtime/syntax/ampl.vim') diff --git a/runtime/syntax/ampl.vim b/runtime/syntax/ampl.vim index 99a683a0f4..ad78f7d729 100644 --- a/runtime/syntax/ampl.vim +++ b/runtime/syntax/ampl.vim @@ -114,26 +114,24 @@ syn keyword amplTodo contained TODO FIXME XXX -command -nargs=+ HiLink hi def link " 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 +hi def link amplEntityKeyword Keyword +hi def link amplType Type +hi def link amplStatement Statement +hi def link amplOperators Operator +hi def link amplBasicOperators Operator +hi def link amplConditional Conditional +hi def link amplRepeat Repeat +hi def link amplStrings String +hi def link amplNumerics Number +hi def link amplSetFunction Function +hi def link amplBuiltInFunction Function +hi def link amplRandomGenerator Function +hi def link amplComment Comment +hi def link amplDotSuffix Special +hi def link amplPiecewise Special + let b:current_syntax = "ampl" -- cgit