comparison runtime/syntax/asn.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 aa51675adf7e
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
2 " Language: ASN.1 2 " Language: ASN.1
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com> 3 " Maintainer: Claudio Fleiner <claudio@fleiner.com>
4 " URL: http://www.fleiner.com/vim/syntax/asn.vim 4 " URL: http://www.fleiner.com/vim/syntax/asn.vim
5 " Last Change: 2012 Oct 05 5 " Last Change: 2012 Oct 05
6 6
7 " For version 5.x: Clear all syntax items 7 " quit when a syntax file was already loaded
8 " For version 6.x: Quit when a syntax file was already loaded 8 if exists("b:current_syntax")
9 if version < 600
10 syntax clear
11 elseif exists("b:current_syntax")
12 finish 9 finish
13 endif 10 endif
14 11
15 let s:cpo_save = &cpo 12 let s:cpo_save = &cpo
16 set cpo&vim 13 set cpo&vim
48 syn match asnBraces "[{}]" 45 syn match asnBraces "[{}]"
49 46
50 syn sync ccomment asnComment 47 syn sync ccomment asnComment
51 48
52 " Define the default highlighting. 49 " Define the default highlighting.
53 " For version 5.7 and earlier: only when not done already 50 " Only when an item doesn't have highlighting yet
54 " For version 5.8 and later: only when an item doesn't have highlighting yet 51 command -nargs=+ HiLink hi def link <args>
55 if version >= 508 || !exists("did_asn_syn_inits") 52 HiLink asnDefinition Function
56 if version < 508 53 HiLink asnBraces Function
57 let did_asn_syn_inits = 1 54 HiLink asnStructure Statement
58 command -nargs=+ HiLink hi link <args> 55 HiLink asnBoolValue Boolean
59 else 56 HiLink asnSpecial Special
60 command -nargs=+ HiLink hi def link <args> 57 HiLink asnString String
61 endif 58 HiLink asnCharacter Character
62 HiLink asnDefinition Function 59 HiLink asnSpecialCharacter asnSpecial
63 HiLink asnBraces Function 60 HiLink asnNumber asnValue
64 HiLink asnStructure Statement 61 HiLink asnComment Comment
65 HiLink asnBoolValue Boolean 62 HiLink asnLineComment asnComment
66 HiLink asnSpecial Special 63 HiLink asnType Type
67 HiLink asnString String 64 HiLink asnTypeInfo PreProc
68 HiLink asnCharacter Character 65 HiLink asnValue Number
69 HiLink asnSpecialCharacter asnSpecial 66 HiLink asnExternal Include
70 HiLink asnNumber asnValue 67 HiLink asnTagModifier Function
71 HiLink asnComment Comment 68 HiLink asnFieldOption Type
72 HiLink asnLineComment asnComment 69 delcommand HiLink
73 HiLink asnType Type
74 HiLink asnTypeInfo PreProc
75 HiLink asnValue Number
76 HiLink asnExternal Include
77 HiLink asnTagModifier Function
78 HiLink asnFieldOption Type
79 delcommand HiLink
80 endif
81 70
82 let &cpo = s:cpo_save 71 let &cpo = s:cpo_save
83 unlet s:cpo_save 72 unlet s:cpo_save
84 let b:current_syntax = "asn" 73 let b:current_syntax = "asn"
85 74