Mercurial > vim
comparison runtime/syntax/icon.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 |
---|---|
2 " Language: Icon | 2 " Language: Icon |
3 " Maintainer: Wendell Turner <wendell@adsi-m4.com> | 3 " Maintainer: Wendell Turner <wendell@adsi-m4.com> |
4 " URL: ftp://ftp.halcyon.com/pub/users/wturner/icon.vim | 4 " URL: ftp://ftp.halcyon.com/pub/users/wturner/icon.vim |
5 " Last Change: 2003 May 11 | 5 " Last Change: 2003 May 11 |
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 syn keyword iconFunction abs acos any args asin atan bal | 12 syn keyword iconFunction abs acos any args asin atan bal |
16 syn keyword iconFunction callout center char chdir close collect copy | 13 syn keyword iconFunction callout center char chdir close collect copy |
155 endif | 152 endif |
156 exec "syn sync ccomment iconComment minlines=" . icon_minlines | 153 exec "syn sync ccomment iconComment minlines=" . icon_minlines |
157 | 154 |
158 " Define the default highlighting. | 155 " Define the default highlighting. |
159 | 156 |
160 " For version 5.7 and earlier: only when not done already | 157 " Only when an item doesn't have highlighting |
161 " For version 5.8 and later: only when an item doesn't have highlighting | 158 command -nargs=+ HiLink hi def link <args> |
162 if version >= 508 || !exists("did_icon_syn_inits") | 159 |
163 if version < 508 | 160 " The default methods for highlighting. Can be overridden later |
164 let did_icon_syn_inits = 1 | 161 |
165 command -nargs=+ HiLink hi link <args> | 162 " HiLink iconSpecialCharacter iconSpecial |
166 else | 163 |
167 command -nargs=+ HiLink hi def link <args> | 164 HiLink iconOctalError iconError |
168 endif | 165 HiLink iconParenError iconError |
169 | 166 HiLink iconInParen iconError |
170 " The default methods for highlighting. Can be overridden later | 167 HiLink iconCommentError iconError |
171 | 168 HiLink iconSpaceError iconError |
172 " HiLink iconSpecialCharacter iconSpecial | 169 HiLink iconCommentError iconError |
173 | 170 HiLink iconIncluded iconString |
174 HiLink iconOctalError iconError | 171 HiLink iconCommentString iconString |
175 HiLink iconParenError iconError | 172 HiLink iconComment2String iconString |
176 HiLink iconInParen iconError | 173 HiLink iconCommentSkip iconComment |
177 HiLink iconCommentError iconError | 174 |
178 HiLink iconSpaceError iconError | 175 HiLink iconUserLabel Label |
179 HiLink iconCommentError iconError | 176 HiLink iconCharacter Character |
180 HiLink iconIncluded iconString | 177 HiLink iconNumber Number |
181 HiLink iconCommentString iconString | 178 HiLink iconRadix Number |
182 HiLink iconComment2String iconString | 179 HiLink iconFloat Float |
183 HiLink iconCommentSkip iconComment | 180 HiLink iconInclude Include |
184 | 181 HiLink iconPreProc PreProc |
185 HiLink iconUserLabel Label | 182 HiLink iconDefine Macro |
186 HiLink iconCharacter Character | 183 HiLink iconError Error |
187 HiLink iconNumber Number | 184 HiLink iconStatement Statement |
188 HiLink iconRadix Number | 185 HiLink iconPreCondit PreCondit |
189 HiLink iconFloat Float | 186 HiLink iconString String |
190 HiLink iconInclude Include | 187 HiLink iconCset String |
191 HiLink iconPreProc PreProc | 188 HiLink iconComment Comment |
192 HiLink iconDefine Macro | 189 HiLink iconSpecial SpecialChar |
193 HiLink iconError Error | 190 HiLink iconTodo Todo |
194 HiLink iconStatement Statement | 191 HiLink iconStorageClass StorageClass |
195 HiLink iconPreCondit PreCondit | 192 HiLink iconFunction Statement |
196 HiLink iconString String | 193 HiLink iconReserved Label |
197 HiLink iconCset String | 194 HiLink iconKeyword Operator |
198 HiLink iconComment Comment | 195 |
199 HiLink iconSpecial SpecialChar | 196 "HiLink iconIdentifier Identifier |
200 HiLink iconTodo Todo | 197 |
201 HiLink iconStorageClass StorageClass | 198 delcommand HiLink |
202 HiLink iconFunction Statement | |
203 HiLink iconReserved Label | |
204 HiLink iconKeyword Operator | |
205 | |
206 "HiLink iconIdentifier Identifier | |
207 | |
208 delcommand HiLink | |
209 endif | |
210 | 199 |
211 let b:current_syntax = "icon" | 200 let b:current_syntax = "icon" |
212 | 201 |