comparison runtime/syntax/dcd.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 3fc0f57ecb91
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
1 " Vim syntax file 1 " Vim syntax file
2 " Language: WildPackets EtherPeek Decoder (.dcd) file 2 " Language: WildPackets EtherPeek Decoder (.dcd) file
3 " Maintainer: Christopher Shinn <christopher@lucent.com> 3 " Maintainer: Christopher Shinn <christopher@lucent.com>
4 " Last Change: 2003 Apr 25 4 " Last Change: 2003 Apr 25
5 5
6 " For version 5.x: Clear all syntax items 6 " quit when a syntax file was already loaded
7 " For version 6.x: Quit when a syntax file was already loaded 7 if exists("b:current_syntax")
8 if version < 600
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish 8 finish
12 endif 9 endif
13 10
14 " Keywords 11 " Keywords
15 syn keyword dcdFunction DCod TRTS TNXT CRLF 12 syn keyword dcdFunction DCod TRTS TNXT CRLF
38 35
39 " Comment 36 " Comment
40 syn region dcdComment start="\*" end="\;" 37 syn region dcdComment start="\*" end="\;"
41 38
42 " Define the default highlighting. 39 " Define the default highlighting.
43 " For version 5.7 and earlier: only when not done already 40 " Only when an item doesn't have highlighting yet
44 " For version 5.8 and later: only when an item doesn't have highlighting yet 41 command -nargs=+ HiLink hi def link <args>
45 if version >= 508 || !exists("did_dcd_syntax_inits")
46 if version < 508
47 let did_dcd_syntax_inits = 1
48 command -nargs=+ HiLink hi link <args>
49 else
50 command -nargs=+ HiLink hi def link <args>
51 endif
52 42
53 HiLink dcdFunction Identifier 43 HiLink dcdFunction Identifier
54 HiLink dcdLabel Constant 44 HiLink dcdLabel Constant
55 HiLink dcdConditional Conditional 45 HiLink dcdConditional Conditional
56 HiLink dcdDisplay Type 46 HiLink dcdDisplay Type
57 HiLink dcdStatement Statement 47 HiLink dcdStatement Statement
58 HiLink dcdSpecial Special 48 HiLink dcdSpecial Special
59 HiLink dcdComment Comment 49 HiLink dcdComment Comment
60 50
61 delcommand HiLink 51 delcommand HiLink
62 endif
63 52
64 let b:current_syntax = "dcd" 53 let b:current_syntax = "dcd"