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/mgl.vim | 71 ++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 40 deletions(-) (limited to 'runtime/syntax/mgl.vim') diff --git a/runtime/syntax/mgl.vim b/runtime/syntax/mgl.vim index 55ae137f2f..4fd718e05b 100644 --- a/runtime/syntax/mgl.vim +++ b/runtime/syntax/mgl.vim @@ -6,9 +6,8 @@ " " $Id: mgl.vim,v 1.1 2006/02/21 22:08:20 vimboss Exp $ " -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 @@ -84,43 +83,35 @@ syn keyword mglPredefined exception " 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_mgl_syn_inits") - if version < 508 - let did_mgl_syn_inits = 1 - command -nargs=+ HiLink hi link - else - command -nargs=+ HiLink hi def link - endif - - HiLink mglBoolean Boolean - HiLink mglComment Comment - HiLink mglConditional Conditional - HiLink mglConstant Constant - HiLink mglException Exception - HiLink mglFunction Function - HiLink mglLabel Label - HiLink mglMatrixDelimiter Identifier - HiLink mglNumber Number - HiLink mglHexNumber Number - HiLink mglCharacter Number - HiLink mglIpAddr Number - HiLink mglOperator Operator - HiLink mglPredefined mglFunction - HiLink mglPreProc PreProc - HiLink mglRepeat Repeat - HiLink mglStatement Statement - HiLink mglString String - HiLink mglStringEscape Special - HiLink mglStringEscapeGPC Special - HiLink mglStringError Error - HiLink mglStruct mglStatement - HiLink mglSymbolOperator mglOperator - HiLink mglType Type - - delcommand HiLink -endif +" Only when an item doesn't have highlighting yet +command -nargs=+ HiLink hi def link + +HiLink mglBoolean Boolean +HiLink mglComment Comment +HiLink mglConditional Conditional +HiLink mglConstant Constant +HiLink mglException Exception +HiLink mglFunction Function +HiLink mglLabel Label +HiLink mglMatrixDelimiter Identifier +HiLink mglNumber Number +HiLink mglHexNumber Number +HiLink mglCharacter Number +HiLink mglIpAddr Number +HiLink mglOperator Operator +HiLink mglPredefined mglFunction +HiLink mglPreProc PreProc +HiLink mglRepeat Repeat +HiLink mglStatement Statement +HiLink mglString String +HiLink mglStringEscape Special +HiLink mglStringEscapeGPC Special +HiLink mglStringError Error +HiLink mglStruct mglStatement +HiLink mglSymbolOperator mglOperator +HiLink mglType Type + +delcommand HiLink let b:current_syntax = "mgl" -- 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/mgl.vim | 54 ++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 28 deletions(-) (limited to 'runtime/syntax/mgl.vim') diff --git a/runtime/syntax/mgl.vim b/runtime/syntax/mgl.vim index 4fd718e05b..f7bc617f5a 100644 --- a/runtime/syntax/mgl.vim +++ b/runtime/syntax/mgl.vim @@ -84,34 +84,32 @@ syn keyword mglPredefined exception " Define the default highlighting. " Only when an item doesn't have highlighting yet -command -nargs=+ HiLink hi def link - -HiLink mglBoolean Boolean -HiLink mglComment Comment -HiLink mglConditional Conditional -HiLink mglConstant Constant -HiLink mglException Exception -HiLink mglFunction Function -HiLink mglLabel Label -HiLink mglMatrixDelimiter Identifier -HiLink mglNumber Number -HiLink mglHexNumber Number -HiLink mglCharacter Number -HiLink mglIpAddr Number -HiLink mglOperator Operator -HiLink mglPredefined mglFunction -HiLink mglPreProc PreProc -HiLink mglRepeat Repeat -HiLink mglStatement Statement -HiLink mglString String -HiLink mglStringEscape Special -HiLink mglStringEscapeGPC Special -HiLink mglStringError Error -HiLink mglStruct mglStatement -HiLink mglSymbolOperator mglOperator -HiLink mglType Type - -delcommand HiLink + +hi def link mglBoolean Boolean +hi def link mglComment Comment +hi def link mglConditional Conditional +hi def link mglConstant Constant +hi def link mglException Exception +hi def link mglFunction Function +hi def link mglLabel Label +hi def link mglMatrixDelimiter Identifier +hi def link mglNumber Number +hi def link mglHexNumber Number +hi def link mglCharacter Number +hi def link mglIpAddr Number +hi def link mglOperator Operator +hi def link mglPredefined mglFunction +hi def link mglPreProc PreProc +hi def link mglRepeat Repeat +hi def link mglStatement Statement +hi def link mglString String +hi def link mglStringEscape Special +hi def link mglStringEscapeGPC Special +hi def link mglStringError Error +hi def link mglStruct mglStatement +hi def link mglSymbolOperator mglOperator +hi def link mglType Type + let b:current_syntax = "mgl" -- cgit