comparison runtime/syntax/xmath.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 b3bc99b909c3
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz> 3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
4 " Last Change: Sep 11, 2006 4 " Last Change: Sep 11, 2006
5 " Version: 7 5 " Version: 7
6 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XMATH 6 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XMATH
7 7
8 " For version 5.x: Clear all syntax items 8 " quit when a syntax file was already loaded
9 " For version 6.x: Quit when a syntax file was already loaded 9 if exists("b:current_syntax")
10 if version < 600
11 syntax clear
12 elseif exists("b:current_syntax")
13 finish 10 finish
14 endif 11 endif
15 12
16 " parenthesis sanity checker 13 " parenthesis sanity checker
17 syn region xmathZone matchgroup=Delimiter start="(" matchgroup=Delimiter end=")" transparent contains=ALLBUT,xmathError,xmathBraceError,xmathCurlyError 14 syn region xmathZone matchgroup=Delimiter start="(" matchgroup=Delimiter end=")" transparent contains=ALLBUT,xmathError,xmathBraceError,xmathCurlyError
192 " synchronizing 189 " synchronizing
193 syn sync match xmathSyncComment grouphere xmathCommentBlock "#{" 190 syn sync match xmathSyncComment grouphere xmathCommentBlock "#{"
194 syn sync match xmathSyncComment groupthere NONE "}#" 191 syn sync match xmathSyncComment groupthere NONE "}#"
195 192
196 " Define the default highlighting. 193 " Define the default highlighting.
197 " For version 5.7 and earlier: only when not done already 194 " Only when an item doesn't have highlighting yet
198 " For version 5.8 and later: only when an item doesn't have highlighting yet 195 command -nargs=+ HiLink hi def link <args>
199 if version >= 508 || !exists("did_xmath_syntax_inits") 196
200 if version < 508 197 HiLink xmathBraceError xmathError
201 let did_xmath_syntax_inits = 1 198 HiLink xmathCmd xmathStatement
202 command -nargs=+ HiLink hi link <args> 199 HiLink xmathCommentBlock xmathComment
203 else 200 HiLink xmathCurlyError xmathError
204 command -nargs=+ HiLink hi def link <args> 201 HiLink xmathFuncCmd xmathStatement
205 endif 202 HiLink xmathParenError xmathError
206 203
207 HiLink xmathBraceError xmathError 204 " The default methods for highlighting. Can be overridden later
208 HiLink xmathCmd xmathStatement 205 HiLink xmathCharacter Character
209 HiLink xmathCommentBlock xmathComment 206 HiLink xmathComma Delimiter
210 HiLink xmathCurlyError xmathError 207 HiLink xmathComment Comment
211 HiLink xmathFuncCmd xmathStatement 208 HiLink xmathCommentBlock Comment
212 HiLink xmathParenError xmathError 209 HiLink xmathConditional Conditional
213 210 HiLink xmathError Error
214 " The default methods for highlighting. Can be overridden later 211 HiLink xmathFunc Function
215 HiLink xmathCharacter Character 212 HiLink xmathLabel PreProc
216 HiLink xmathComma Delimiter 213 HiLink xmathNumber Number
217 HiLink xmathComment Comment 214 HiLink xmathRepeat Repeat
218 HiLink xmathCommentBlock Comment 215 HiLink xmathSpecial Type
219 HiLink xmathConditional Conditional 216 HiLink xmathSpecialChar SpecialChar
220 HiLink xmathError Error 217 HiLink xmathStatement Statement
221 HiLink xmathFunc Function 218 HiLink xmathString String
222 HiLink xmathLabel PreProc 219 HiLink xmathTodo Todo
223 HiLink xmathNumber Number 220
224 HiLink xmathRepeat Repeat 221 delcommand HiLink
225 HiLink xmathSpecial Type
226 HiLink xmathSpecialChar SpecialChar
227 HiLink xmathStatement Statement
228 HiLink xmathString String
229 HiLink xmathTodo Todo
230
231 delcommand HiLink
232 endif
233 222
234 let b:current_syntax = "xmath" 223 let b:current_syntax = "xmath"
235 224
236 " vim: ts=17 225 " vim: ts=17