comparison runtime/syntax/btm.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
9 "// be separate synmatches for each possibility otherwise a more 9 "// be separate synmatches for each possibility otherwise a more
10 "// general \.\i\+\. will highlight anything delimited by dots. 10 "// general \.\i\+\. will highlight anything delimited by dots.
11 "//- After unary operators like "defined" can assume token type. 11 "//- After unary operators like "defined" can assume token type.
12 "// Should there be more of these? 12 "// Should there be more of these?
13 13
14 " For version 5.x: Clear all syntax items 14 " quit when a syntax file was already loaded
15 " For version 6.x: Quit when a syntax file was already loaded 15 if exists("b:current_syntax")
16 if version < 600
17 syntax clear
18 elseif exists("b:current_syntax")
19 finish 16 finish
20 endif 17 endif
21 18
22 syn case ignore 19 syn case ignore
23 20
182 syn keyword btmCommand type unalias undelete unformat 179 syn keyword btmCommand type unalias undelete unformat
183 syn keyword btmCommand unlock unset ver verify vol 180 syn keyword btmCommand unlock unset ver verify vol
184 syn keyword btmCommand vscrput y 181 syn keyword btmCommand vscrput y
185 182
186 " Define the default highlighting. 183 " Define the default highlighting.
187 " For version 5.7 and earlier: only when not done already 184 " Only when an item doesn't have highlighting yet
188 " For version 5.8 and later: only when an item doesn't have highlighting yet 185 command -nargs=+ HiLink hi def link <args>
189 if version >= 508 || !exists("did_btm_syntax_inits") 186
190 if version < 508 187 HiLink btmLabel Special
191 let did_btm_syntax_inits = 1 188 HiLink btmLabelMark Special
192 command -nargs=+ HiLink hi link <args> 189 HiLink btmCmdDivider Special
193 else 190 HiLink btmConditional btmStatement
194 command -nargs=+ HiLink hi def link <args> 191 HiLink btmDotBoolOp btmStatement
195 endif 192 HiLink btmRepeat btmStatement
196 193 HiLink btmEchoCommand btmStatement
197 HiLink btmLabel Special 194 HiLink btmEchoParam btmStatement
198 HiLink btmLabelMark Special 195 HiLink btmStatement Statement
199 HiLink btmCmdDivider Special 196 HiLink btmTodo Todo
200 HiLink btmConditional btmStatement 197 HiLink btmString String
201 HiLink btmDotBoolOp btmStatement 198 HiLink btmNumber Number
202 HiLink btmRepeat btmStatement 199 HiLink btmComment Comment
203 HiLink btmEchoCommand btmStatement 200 HiLink btmArgument Identifier
204 HiLink btmEchoParam btmStatement 201 HiLink btmVariable Identifier
205 HiLink btmStatement Statement 202 HiLink btmEcho String
206 HiLink btmTodo Todo 203 HiLink btmBIFMatch btmStatement
207 HiLink btmString String 204 HiLink btmBuiltInFunc btmStatement
208 HiLink btmNumber Number 205 HiLink btmBuiltInVar btmStatement
209 HiLink btmComment Comment 206 HiLink btmSpecialVar btmStatement
210 HiLink btmArgument Identifier 207 HiLink btmCommand btmStatement
211 HiLink btmVariable Identifier 208
212 HiLink btmEcho String 209 "optional highlighting
213 HiLink btmBIFMatch btmStatement 210 "HiLink btmShowTab Error
214 HiLink btmBuiltInFunc btmStatement 211 "HiLink btmShowTabc Error
215 HiLink btmBuiltInVar btmStatement 212 "hiLink btmIdentifier Identifier
216 HiLink btmSpecialVar btmStatement 213
217 HiLink btmCommand btmStatement 214 delcommand HiLink
218
219 "optional highlighting
220 "HiLink btmShowTab Error
221 "HiLink btmShowTabc Error
222 "hiLink btmIdentifier Identifier
223
224 delcommand HiLink
225 endif
226 215
227 let b:current_syntax = "btm" 216 let b:current_syntax = "btm"
228 217
229 " vim: ts=8 218 " vim: ts=8