comparison runtime/syntax/mgl.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 7bc41231fbc7
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
4 " Last Change: 2006 Feb 21 4 " Last Change: 2006 Feb 21
5 " Maintainer: Gero Kuhlmann <gero@gkminix.han.de> 5 " Maintainer: Gero Kuhlmann <gero@gkminix.han.de>
6 " 6 "
7 " $Id: mgl.vim,v 1.1 2006/02/21 22:08:20 vimboss Exp $ 7 " $Id: mgl.vim,v 1.1 2006/02/21 22:08:20 vimboss Exp $
8 " 8 "
9 if version < 600 9 " quit when a syntax file was already loaded
10 syntax clear 10 if exists("b:current_syntax")
11 elseif exists("b:current_syntax")
12 finish 11 finish
13 endif 12 endif
14 13
15 14
16 syn sync lines=250 15 syn sync lines=250
82 syn keyword mglException try except raise 81 syn keyword mglException try except raise
83 syn keyword mglPredefined exception 82 syn keyword mglPredefined exception
84 83
85 84
86 " Define the default highlighting. 85 " Define the default highlighting.
87 " For version 5.7 and earlier: only when not done already 86 " Only when an item doesn't have highlighting yet
88 " For version 5.8 and later: only when an item doesn't have highlighting yet 87 command -nargs=+ HiLink hi def link <args>
89 if version >= 508 || !exists("did_mgl_syn_inits")
90 if version < 508
91 let did_mgl_syn_inits = 1
92 command -nargs=+ HiLink hi link <args>
93 else
94 command -nargs=+ HiLink hi def link <args>
95 endif
96 88
97 HiLink mglBoolean Boolean 89 HiLink mglBoolean Boolean
98 HiLink mglComment Comment 90 HiLink mglComment Comment
99 HiLink mglConditional Conditional 91 HiLink mglConditional Conditional
100 HiLink mglConstant Constant 92 HiLink mglConstant Constant
101 HiLink mglException Exception 93 HiLink mglException Exception
102 HiLink mglFunction Function 94 HiLink mglFunction Function
103 HiLink mglLabel Label 95 HiLink mglLabel Label
104 HiLink mglMatrixDelimiter Identifier 96 HiLink mglMatrixDelimiter Identifier
105 HiLink mglNumber Number 97 HiLink mglNumber Number
106 HiLink mglHexNumber Number 98 HiLink mglHexNumber Number
107 HiLink mglCharacter Number 99 HiLink mglCharacter Number
108 HiLink mglIpAddr Number 100 HiLink mglIpAddr Number
109 HiLink mglOperator Operator 101 HiLink mglOperator Operator
110 HiLink mglPredefined mglFunction 102 HiLink mglPredefined mglFunction
111 HiLink mglPreProc PreProc 103 HiLink mglPreProc PreProc
112 HiLink mglRepeat Repeat 104 HiLink mglRepeat Repeat
113 HiLink mglStatement Statement 105 HiLink mglStatement Statement
114 HiLink mglString String 106 HiLink mglString String
115 HiLink mglStringEscape Special 107 HiLink mglStringEscape Special
116 HiLink mglStringEscapeGPC Special 108 HiLink mglStringEscapeGPC Special
117 HiLink mglStringError Error 109 HiLink mglStringError Error
118 HiLink mglStruct mglStatement 110 HiLink mglStruct mglStatement
119 HiLink mglSymbolOperator mglOperator 111 HiLink mglSymbolOperator mglOperator
120 HiLink mglType Type 112 HiLink mglType Type
121 113
122 delcommand HiLink 114 delcommand HiLink
123 endif
124 115
125 116
126 let b:current_syntax = "mgl" 117 let b:current_syntax = "mgl"
127 118
128 " vim: ts=8 sw=2 119 " vim: ts=8 sw=2