comparison runtime/syntax/pic.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
3 " Maintainer: Aleksandar Veselinovic <aleksa@cs.cmu.com> 3 " Maintainer: Aleksandar Veselinovic <aleksa@cs.cmu.com>
4 " Last Change: 2003 May 11 4 " Last Change: 2003 May 11
5 " URL: http://galeb.etf.bg.ac.yu/~alexa/vim/syntax/pic.vim 5 " URL: http://galeb.etf.bg.ac.yu/~alexa/vim/syntax/pic.vim
6 " Revision: 1.01 6 " Revision: 1.01
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 syn case match 13 syn case match
17 syn keyword picTodo NOTE TODO XXX contained 14 syn keyword picTodo NOTE TODO XXX contained
89 syn match picDirective "#\=INCLUDE" 86 syn match picDirective "#\=INCLUDE"
90 syn match picDirective "#\=DEFINE" 87 syn match picDirective "#\=DEFINE"
91 88
92 89
93 " Define the default highlighting. 90 " Define the default highlighting.
94 " For version 5.7 and earlier: only when not done already 91 " Only when an item doesn't have highlighting yet
95 " For version 5.8 and later: only when an item doesn't have highlighting yet 92 command -nargs=+ HiLink hi def link <args>
96 if version >= 508 || !exists("did_pic16f84_syntax_inits")
97 if version < 508
98 let did_pic16f84_syntax_inits = 1
99 command -nargs=+ HiLink hi link <args>
100 else
101 command -nargs=+ HiLink hi def link <args>
102 endif
103 93
104 HiLink picTodo Todo 94 HiLink picTodo Todo
105 HiLink picComment Comment 95 HiLink picComment Comment
106 HiLink picDirective Statement 96 HiLink picDirective Statement
107 HiLink picLabel Label 97 HiLink picLabel Label
108 HiLink picString String 98 HiLink picString String
109 99
110 "HiLink picOpcode Keyword 100 "HiLink picOpcode Keyword
111 "HiLink picRegister Structure 101 "HiLink picRegister Structure
112 "HiLink picRegisterPart Special 102 "HiLink picRegisterPart Special
113 103
114 HiLink picASCII String 104 HiLink picASCII String
115 HiLink picBinary Number 105 HiLink picBinary Number
116 HiLink picDecimal Number 106 HiLink picDecimal Number
117 HiLink picHexadecimal Number 107 HiLink picHexadecimal Number
118 HiLink picOctal Number 108 HiLink picOctal Number
119 109
120 HiLink picIdentifier Identifier 110 HiLink picIdentifier Identifier
121 111
122 delcommand HiLink 112 delcommand HiLink
123 endif
124 113
125 let b:current_syntax = "pic" 114 let b:current_syntax = "pic"
126 115
127 " vim: ts=8 116 " vim: ts=8