comparison runtime/syntax/spup.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 b7811ab264bf
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
15 " both "area" are highlighted as spupType. 15 " both "area" are highlighted as spupType.
16 " 16 "
17 " If you encounter problems or have questions or suggestions, mail me 17 " If you encounter problems or have questions or suggestions, mail me
18 18
19 " Remove old syntax stuff 19 " Remove old syntax stuff
20 " For version 5.x: Clear all syntax items 20 " quit when a syntax file was already loaded
21 " For version 6.x: Quit when a syntax file was already loaded 21 if exists("b:current_syntax")
22 if version < 600
23 syntax clear
24 elseif exists("b:current_syntax")
25 finish 22 finish
26 endif 23 endif
27 24
28 let s:cpo_save = &cpo 25 let s:cpo_save = &cpo
29 set cpo&vim 26 set cpo&vim
204 syn sync match spupSyncReport grouphere spupReport "^REPORT" 201 syn sync match spupSyncReport grouphere spupReport "^REPORT"
205 syn sync match spupSyncTitle grouphere spupTitle "^TITLE" 202 syn sync match spupSyncTitle grouphere spupTitle "^TITLE"
206 syn sync match spupSyncUnit grouphere spupUnit "^UNIT" 203 syn sync match spupSyncUnit grouphere spupUnit "^UNIT"
207 204
208 " Define the default highlighting. 205 " Define the default highlighting.
209 " For version 5.7 and earlier: only when not done already 206 " Only when an item doesn't have highlighting yet
210 " For version 5.8 and later: only when an item doesn't have highlighting yet 207 command -nargs=+ HiLink hi def link <args>
211 if version >= 508 || !exists("did_spup_syn_inits") 208
212 if version < 508 209 HiLink spupCdi spupSection
213 let did_spup_syn_inits = 1 210 HiLink spupConditions spupSection
214 command -nargs=+ HiLink hi link <args> 211 HiLink spupDeclare spupSection
215 else 212 HiLink spupEstimation spupSection
216 command -nargs=+ HiLink hi def link <args> 213 HiLink spupExternal spupSection
217 endif 214 HiLink spupFlowsheet spupSection
218 215 HiLink spupFunction spupSection
219 HiLink spupCdi spupSection 216 HiLink spupGlobal spupSection
220 HiLink spupConditions spupSection 217 HiLink spupHomotopy spupSection
221 HiLink spupDeclare spupSection 218 HiLink spupMacro spupSection
222 HiLink spupEstimation spupSection 219 HiLink spupModel spupSection
223 HiLink spupExternal spupSection 220 HiLink spupOperation spupSection
224 HiLink spupFlowsheet spupSection 221 HiLink spupOptions spupSection
225 HiLink spupFunction spupSection 222 HiLink spupProcedure spupSection
226 HiLink spupGlobal spupSection 223 HiLink spupProfiles spupSection
227 HiLink spupHomotopy spupSection 224 HiLink spupReport spupSection
228 HiLink spupMacro spupSection 225 HiLink spupTitle spupConstant " this is correct, truly ;)
229 HiLink spupModel spupSection 226 HiLink spupUnit spupSection
230 HiLink spupOperation spupSection 227
231 HiLink spupOptions spupSection 228 HiLink spupCdiSubs spupSubs
232 HiLink spupProcedure spupSection 229 HiLink spupConditionsSubs spupSubs
233 HiLink spupProfiles spupSection 230 HiLink spupDeclareSubs spupSubs
234 HiLink spupReport spupSection 231 HiLink spupEstimationSubs spupSubs
235 HiLink spupTitle spupConstant " this is correct, truly ;) 232 HiLink spupExternalSubs spupSubs
236 HiLink spupUnit spupSection 233 HiLink spupFlowsheetSubs spupSubs
237 234 HiLink spupFunctionSubs spupSubs
238 HiLink spupCdiSubs spupSubs 235 HiLink spupHomotopySubs spupSubs
239 HiLink spupConditionsSubs spupSubs 236 HiLink spupMacroSubs spupSubs
240 HiLink spupDeclareSubs spupSubs 237 HiLink spupModelSubs spupSubs
241 HiLink spupEstimationSubs spupSubs 238 HiLink spupOperationSubs spupSubs
242 HiLink spupExternalSubs spupSubs 239 HiLink spupOptionsSubs spupSubs
243 HiLink spupFlowsheetSubs spupSubs 240 HiLink spupProcedureSubs spupSubs
244 HiLink spupFunctionSubs spupSubs 241 HiLink spupReportSubs spupSubs
245 HiLink spupHomotopySubs spupSubs 242 HiLink spupUnitSubs spupSubs
246 HiLink spupMacroSubs spupSubs 243
247 HiLink spupModelSubs spupSubs 244 HiLink spupCode Normal
248 HiLink spupOperationSubs spupSubs 245 HiLink spupComment Comment
249 HiLink spupOptionsSubs spupSubs 246 HiLink spupComment2 spupComment
250 HiLink spupProcedureSubs spupSubs 247 HiLink spupConditional Statement
251 HiLink spupReportSubs spupSubs 248 HiLink spupConstant Constant
252 HiLink spupUnitSubs spupSubs 249 HiLink spupError Error
253 250 HiLink spupHelp Normal
254 HiLink spupCode Normal 251 HiLink spupIdentifier Identifier
255 HiLink spupComment Comment 252 HiLink spupNumber Constant
256 HiLink spupComment2 spupComment 253 HiLink spupOperator Special
257 HiLink spupConditional Statement 254 HiLink spupOpenBrace spupError
258 HiLink spupConstant Constant 255 HiLink spupSection Statement
259 HiLink spupError Error 256 HiLink spupSpecial spupTextprocGeneric
260 HiLink spupHelp Normal 257 HiLink spupStreams Type
261 HiLink spupIdentifier Identifier 258 HiLink spupString Constant
262 HiLink spupNumber Constant 259 HiLink spupSubs Statement
263 HiLink spupOperator Special 260 HiLink spupSymbol Special
264 HiLink spupOpenBrace spupError 261 HiLink spupTextprocError Normal
265 HiLink spupSection Statement 262 HiLink spupTextprocGeneric PreProc
266 HiLink spupSpecial spupTextprocGeneric 263 HiLink spupTypes Type
267 HiLink spupStreams Type 264
268 HiLink spupString Constant 265 delcommand HiLink
269 HiLink spupSubs Statement
270 HiLink spupSymbol Special
271 HiLink spupTextprocError Normal
272 HiLink spupTextprocGeneric PreProc
273 HiLink spupTypes Type
274
275 delcommand HiLink
276 endif
277 266
278 let b:current_syntax = "spup" 267 let b:current_syntax = "spup"
279 268
280 let &cpo = s:cpo_save 269 let &cpo = s:cpo_save
281 unlet s:cpo_save 270 unlet s:cpo_save