comparison runtime/syntax/inform.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 8e5830943bff
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
2 " Language: Inform 2 " Language: Inform
3 " Maintainer: Stephen Thomas (stephen@gowarthomas.com) 3 " Maintainer: Stephen Thomas (stephen@gowarthomas.com)
4 " URL: http://www.gowarthomas.com/informvim 4 " URL: http://www.gowarthomas.com/informvim
5 " Last Change: 2006 April 20 5 " Last Change: 2006 April 20
6 6
7 " Quit when a syntax file was already loaded 7 " quit when a syntax file was already loaded
8 if version < 600 8 if exists("b:current_syntax")
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish 9 finish
12 endif 10 endif
13 11
14 " A bunch of useful Inform keywords. First, case insensitive stuff 12 " A bunch of useful Inform keywords. First, case insensitive stuff
15 13
292 syn keyword informAsmObsolete contained print_paddr print_addr print_char 290 syn keyword informAsmObsolete contained print_paddr print_addr print_char
293 endif 291 endif
294 292
295 " Handling for different versions of VIM. 293 " Handling for different versions of VIM.
296 294
297 if version >= 600 295 setlocal iskeyword+=$
298 setlocal iskeyword+=$ 296 command -nargs=+ SynDisplay syntax <args> display
299 command -nargs=+ SynDisplay syntax <args> display
300 else
301 set iskeyword+=$
302 command -nargs=+ SynDisplay syntax <args>
303 endif
304 297
305 " Grammar sections. 298 " Grammar sections.
306 299
307 syn region informGrammarSection matchgroup=informGramPreProc start="\<Verb\|Extend\>" skip=+".*"+ end=";"he=e-1 contains=ALLBUT,informAsm 300 syn region informGrammarSection matchgroup=informGramPreProc start="\<Verb\|Extend\>" skip=+".*"+ end=";"he=e-1 contains=ALLBUT,informAsm
308 301
345 syn sync maxlines=500 338 syn sync maxlines=500
346 339
347 delcommand SynDisplay 340 delcommand SynDisplay
348 341
349 " The default highlighting. 342 " The default highlighting.
350 if version >= 508 || !exists("did_inform_syn_inits") 343 command -nargs=+ HiLink hi def link <args>
351 if version < 508 344
352 let did_inform_syn_inits = 1 345 HiLink informDefine Define
353 command -nargs=+ HiLink hi link <args> 346 HiLink informType Type
354 else 347 HiLink informInclude Include
355 command -nargs=+ HiLink hi def link <args> 348 HiLink informPreCondit PreCondit
356 endif 349 HiLink informPreProc PreProc
357 350 HiLink informGramPreProc PreProc
358 HiLink informDefine Define 351 HiLink informAsm Special
359 HiLink informType Type 352 if !exists("inform_suppress_obsolete")
360 HiLink informInclude Include 353 HiLink informAsmObsolete informError
361 HiLink informPreCondit PreCondit 354 HiLink informKeywordObsolete informError
362 HiLink informPreProc PreProc 355 else
363 HiLink informGramPreProc PreProc 356 HiLink informAsmObsolete Special
364 HiLink informAsm Special 357 HiLink informKeywordObsolete Keyword
365 if !exists("inform_suppress_obsolete") 358 endif
366 HiLink informAsmObsolete informError 359 HiLink informPredicate Operator
367 HiLink informKeywordObsolete informError 360 HiLink informSysFunc Identifier
368 else 361 HiLink informSysConst Identifier
369 HiLink informAsmObsolete Special 362 HiLink informConditional Conditional
370 HiLink informKeywordObsolete Keyword 363 HiLink informRepeat Repeat
371 endif 364 HiLink informStatement Statement
372 HiLink informPredicate Operator 365 HiLink informOperator Operator
373 HiLink informSysFunc Identifier 366 HiLink informKeyword Keyword
374 HiLink informSysConst Identifier 367 HiLink informGrammar Keyword
375 HiLink informConditional Conditional 368 HiLink informDictString String
376 HiLink informRepeat Repeat 369 HiLink informNumber Number
377 HiLink informStatement Statement 370 HiLink informError Error
378 HiLink informOperator Operator 371 HiLink informString String
379 HiLink informKeyword Keyword 372 HiLink informComment Comment
380 HiLink informGrammar Keyword 373 HiLink informAccent Special
381 HiLink informDictString String 374 HiLink informStringUnicode Special
382 HiLink informNumber Number 375 HiLink informStringCode Special
383 HiLink informError Error 376 HiLink informTodo Todo
384 HiLink informString String 377 if !exists("inform_highlight_simple")
385 HiLink informComment Comment 378 HiLink informLibAttrib Identifier
386 HiLink informAccent Special 379 HiLink informLibProp Identifier
387 HiLink informStringUnicode Special 380 HiLink informLibObj Identifier
388 HiLink informStringCode Special 381 HiLink informLibRoutine Identifier
389 HiLink informTodo Todo 382 HiLink informLibVariable Identifier
390 if !exists("inform_highlight_simple") 383 HiLink informLibConst Identifier
391 HiLink informLibAttrib Identifier 384 HiLink informLibAction Identifier
392 HiLink informLibProp Identifier 385 endif
393 HiLink informLibObj Identifier 386 HiLink informBadDictString informError
394 HiLink informLibRoutine Identifier 387 HiLink informBadAccent informError
395 HiLink informLibVariable Identifier 388 HiLink informBadStrUnicode informError
396 HiLink informLibConst Identifier 389
397 HiLink informLibAction Identifier 390 delcommand HiLink
398 endif
399 HiLink informBadDictString informError
400 HiLink informBadAccent informError
401 HiLink informBadStrUnicode informError
402
403 delcommand HiLink
404 endif
405 391
406 let b:current_syntax = "inform" 392 let b:current_syntax = "inform"
407 393
408 " vim: ts=8 394 " vim: ts=8