Mercurial > vim
comparison runtime/syntax/vhdl.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 | da01d5da2cfa |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
3 " Maintainer: Daniel Kho <daniel.kho@tauhop.com> | 3 " Maintainer: Daniel Kho <daniel.kho@tauhop.com> |
4 " Previous Maintainer: Czo <Olivier.Sirol@lip6.fr> | 4 " Previous Maintainer: Czo <Olivier.Sirol@lip6.fr> |
5 " Credits: Stephan Hegel <stephan.hegel@snc.siemens.com.cn> | 5 " Credits: Stephan Hegel <stephan.hegel@snc.siemens.com.cn> |
6 " Last Changed: 2016 Mar 05 by Daniel Kho | 6 " Last Changed: 2016 Mar 05 by Daniel Kho |
7 | 7 |
8 if version < 600 | 8 " quit when a syntax file was already loaded |
9 syntax clear | 9 if exists("b:current_syntax") |
10 elseif exists("b:current_syntax") | |
11 finish | 10 finish |
12 endif | 11 endif |
13 | 12 |
14 let s:cpo_save = &cpo | 13 let s:cpo_save = &cpo |
15 set cpo&vim | 14 set cpo&vim |
232 | 231 |
233 "Modify the following as needed. The trade-off is performance versus functionality. | 232 "Modify the following as needed. The trade-off is performance versus functionality. |
234 syn sync minlines=600 | 233 syn sync minlines=600 |
235 | 234 |
236 " Define the default highlighting. | 235 " Define the default highlighting. |
237 " For version 5.7 and earlier: only when not done already | 236 " Only when an item doesn't have highlighting yet |
238 " For version 5.8 and later: only when an item doesn't have highlighting yet | 237 command -nargs=+ HiLink hi def link <args> |
239 if version >= 508 || !exists("did_vhdl_syntax_inits") | 238 |
240 if version < 508 | 239 HiLink vhdlSpecial Special |
241 let did_vhdl_syntax_inits = 1 | 240 HiLink vhdlStatement Statement |
242 command -nargs=+ HiLink hi link <args> | 241 HiLink vhdlCharacter Character |
243 else | 242 HiLink vhdlString String |
244 command -nargs=+ HiLink hi def link <args> | 243 HiLink vhdlVector Number |
245 endif | 244 HiLink vhdlBoolean Number |
246 | 245 HiLink vhdlTodo Todo |
247 HiLink vhdlSpecial Special | 246 HiLink vhdlFixme Fixme |
248 HiLink vhdlStatement Statement | 247 HiLink vhdlComment Comment |
249 HiLink vhdlCharacter Character | 248 HiLink vhdlNumber Number |
250 HiLink vhdlString String | 249 HiLink vhdlTime Number |
251 HiLink vhdlVector Number | 250 HiLink vhdlType Type |
252 HiLink vhdlBoolean Number | 251 HiLink vhdlOperator Operator |
253 HiLink vhdlTodo Todo | 252 HiLink vhdlError Error |
254 HiLink vhdlFixme Fixme | 253 HiLink vhdlAttribute Special |
255 HiLink vhdlComment Comment | 254 HiLink vhdlPreProc PreProc |
256 HiLink vhdlNumber Number | 255 |
257 HiLink vhdlTime Number | 256 delcommand HiLink |
258 HiLink vhdlType Type | |
259 HiLink vhdlOperator Operator | |
260 HiLink vhdlError Error | |
261 HiLink vhdlAttribute Special | |
262 HiLink vhdlPreProc PreProc | |
263 | |
264 delcommand HiLink | |
265 endif | |
266 | 257 |
267 let b:current_syntax = "vhdl" | 258 let b:current_syntax = "vhdl" |
268 | 259 |
269 let &cpo = s:cpo_save | 260 let &cpo = s:cpo_save |
270 unlet s:cpo_save | 261 unlet s:cpo_save |