Mercurial > vim
comparison runtime/syntax/pike.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: Pike | 2 " Language: Pike |
3 " Maintainer: Francesco Chemolli <kinkie@kame.usr.dsi.unimi.it> | 3 " Maintainer: Francesco Chemolli <kinkie@kame.usr.dsi.unimi.it> |
4 " Last Change: 2001 May 10 | 4 " Last Change: 2001 May 10 |
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 " A bunch of useful C keywords | 11 " A bunch of useful C keywords |
15 syn keyword pikeStatement goto break return continue | 12 syn keyword pikeStatement goto break return continue |
102 syn match pikeBitField ";\s*\I\i*\s*:\s*[1-9]"me=e-1 | 99 syn match pikeBitField ";\s*\I\i*\s*:\s*[1-9]"me=e-1 |
103 | 100 |
104 syn sync ccomment pikeComment minlines=10 | 101 syn sync ccomment pikeComment minlines=10 |
105 | 102 |
106 " Define the default highlighting. | 103 " Define the default highlighting. |
107 " For version 5.7 and earlier: only when not done already | 104 " Only when an item doesn't have highlighting yet |
108 " For version 5.8 and later: only when an item doesn't have highlighting yet | 105 command -nargs=+ HiLink hi def link <args> |
109 if version >= 508 || !exists("did_pike_syntax_inits") | |
110 if version < 508 | |
111 let did_pike_syntax_inits = 1 | |
112 command -nargs=+ HiLink hi link <args> | |
113 else | |
114 command -nargs=+ HiLink hi def link <args> | |
115 endif | |
116 | 106 |
117 HiLink pikeLabel Label | 107 HiLink pikeLabel Label |
118 HiLink pikeUserLabel Label | 108 HiLink pikeUserLabel Label |
119 HiLink pikeConditional Conditional | 109 HiLink pikeConditional Conditional |
120 HiLink pikeRepeat Repeat | 110 HiLink pikeRepeat Repeat |
121 HiLink pikeCharacter Character | 111 HiLink pikeCharacter Character |
122 HiLink pikeSpecialCharacter pikeSpecial | 112 HiLink pikeSpecialCharacter pikeSpecial |
123 HiLink pikeNumber Number | 113 HiLink pikeNumber Number |
124 HiLink pikeFloat Float | 114 HiLink pikeFloat Float |
125 HiLink pikeOctalError pikeError | 115 HiLink pikeOctalError pikeError |
126 HiLink pikeParenError pikeError | 116 HiLink pikeParenError pikeError |
127 HiLink pikeInParen pikeError | 117 HiLink pikeInParen pikeError |
128 HiLink pikeCommentError pikeError | 118 HiLink pikeCommentError pikeError |
129 HiLink pikeOperator Operator | 119 HiLink pikeOperator Operator |
130 HiLink pikeInclude Include | 120 HiLink pikeInclude Include |
131 HiLink pikePreProc PreProc | 121 HiLink pikePreProc PreProc |
132 HiLink pikeDefine Macro | 122 HiLink pikeDefine Macro |
133 HiLink pikeIncluded pikeString | 123 HiLink pikeIncluded pikeString |
134 HiLink pikeError Error | 124 HiLink pikeError Error |
135 HiLink pikeStatement Statement | 125 HiLink pikeStatement Statement |
136 HiLink pikePreCondit PreCondit | 126 HiLink pikePreCondit PreCondit |
137 HiLink pikeType Type | 127 HiLink pikeType Type |
138 HiLink pikeCommentError pikeError | 128 HiLink pikeCommentError pikeError |
139 HiLink pikeCommentString pikeString | 129 HiLink pikeCommentString pikeString |
140 HiLink pikeComment2String pikeString | 130 HiLink pikeComment2String pikeString |
141 HiLink pikeCommentSkip pikeComment | 131 HiLink pikeCommentSkip pikeComment |
142 HiLink pikeString String | 132 HiLink pikeString String |
143 HiLink pikeComment Comment | 133 HiLink pikeComment Comment |
144 HiLink pikeSpecial SpecialChar | 134 HiLink pikeSpecial SpecialChar |
145 HiLink pikeTodo Todo | 135 HiLink pikeTodo Todo |
146 HiLink pikeException pikeStatement | 136 HiLink pikeException pikeStatement |
147 HiLink pikeCompoundType Constant | 137 HiLink pikeCompoundType Constant |
148 "HiLink pikeIdentifier Identifier | 138 "HiLink pikeIdentifier Identifier |
149 | 139 |
150 delcommand HiLink | 140 delcommand HiLink |
151 endif | |
152 | 141 |
153 let b:current_syntax = "pike" | 142 let b:current_syntax = "pike" |
154 | 143 |
155 " vim: ts=8 | 144 " vim: ts=8 |