comparison runtime/syntax/cynlib.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
13 " 13 "
14 " Further information can be found from www.forteds.com 14 " Further information can be found from www.forteds.com
15 15
16 16
17 " Remove any old syntax stuff hanging around 17 " Remove any old syntax stuff hanging around
18 " For version 5.x: Clear all syntax items 18 " quit when a syntax file was already loaded
19 " For version 6.x: Quit when a syntax file was already loaded 19 if exists("b:current_syntax")
20 if version < 600
21 syntax clear
22 elseif exists("b:current_syntax")
23 finish 20 finish
24 endif 21 endif
25 22
26 23
27 24
28 " Read the C++ syntax to start with - this includes the C syntax 25 " Read the C++ syntax to start with - this includes the C syntax
29 if version < 600 26 runtime! syntax/cpp.vim
30 source <sfile>:p:h/cpp.vim
31 else
32 runtime! syntax/cpp.vim
33 endif
34 unlet b:current_syntax 27 unlet b:current_syntax
35 28
36 " Cynlib extensions 29 " Cynlib extensions
37 30
38 syn keyword cynlibMacro Default CYNSCON 31 syn keyword cynlibMacro Default CYNSCON
67 60
68 syn match cynlibOperator "<<=" 61 syn match cynlibOperator "<<="
69 syn keyword cynlibType In Out InST OutST Int Uint Const Cynclock 62 syn keyword cynlibType In Out InST OutST Int Uint Const Cynclock
70 63
71 " Define the default highlighting. 64 " Define the default highlighting.
72 " For version 5.7 and earlier: only when not done already 65 " Only when an item doesn't have highlighting yet
73 " For version 5.8 and later: only when an item doesn't have highlighting yet 66 command -nargs=+ HiLink hi def link <args>
74 if version >= 508 || !exists("did_cynlib_syntax_inits")
75 if version < 508
76 let did_cynlib_syntax_inits = 1
77 command -nargs=+ HiLink hi link <args>
78 else
79 command -nargs=+ HiLink hi def link <args>
80 endif
81 67
82 HiLink cynlibOperator Operator 68 HiLink cynlibOperator Operator
83 HiLink cynlibMacro Statement 69 HiLink cynlibMacro Statement
84 HiLink cynlibFunction Statement 70 HiLink cynlibFunction Statement
85 HiLink cynlibppMacro Statement 71 HiLink cynlibppMacro Statement
86 HiLink cynlibType Type 72 HiLink cynlibType Type
87 73
88 delcommand HiLink 74 delcommand HiLink
89 endif
90 75
91 let b:current_syntax = "cynlib" 76 let b:current_syntax = "cynlib"