comparison runtime/syntax/winbatch.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: WinBatch/Webbatch (*.wbt, *.web) 2 " Language: WinBatch/Webbatch (*.wbt, *.web)
3 " Maintainer: dominique@mggen.com 3 " Maintainer: dominique@mggen.com
4 " URL: http://www.mggen.com/vim/syntax/winbatch.zip 4 " URL: http://www.mggen.com/vim/syntax/winbatch.zip
5 " Last change: 2001 May 10 5 " Last change: 2001 May 10
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 case ignore 12 syn case ignore
16 13
156 syn keyword winbatchImplicit xbaseconvert xcursorset xdisklabelget xdriveready xextenderinfo 153 syn keyword winbatchImplicit xbaseconvert xcursorset xdisklabelget xdriveready xextenderinfo
157 syn keyword winbatchImplicit xgetchildhwnd xgetelapsed xhex xmemcompact xmessagebox 154 syn keyword winbatchImplicit xgetchildhwnd xgetelapsed xhex xmemcompact xmessagebox
158 syn keyword winbatchImplicit xsendmessage xverifyccard yield 155 syn keyword winbatchImplicit xsendmessage xverifyccard yield
159 156
160 " Define the default highlighting. 157 " Define the default highlighting.
161 " For version 5.7 and earlier: only when not done already 158 " Only when an item doesn't have highlighting yet
162 " For version 5.8 and later: only when an item doesn't have highlighting yet 159 command -nargs=+ HiLink hi def link <args>
163 if version >= 508 || !exists("did_winbatch_syntax_inits")
164 if version < 508
165 let did_winbatch_syntax_inits = 1
166 command -nargs=+ HiLink hi link <args>
167 else
168 command -nargs=+ HiLink hi def link <args>
169 endif
170 160
171 HiLink winbatchLabel PreProc 161 HiLink winbatchLabel PreProc
172 HiLink winbatchCtl Operator 162 HiLink winbatchCtl Operator
173 HiLink winbatchStatement Statement 163 HiLink winbatchStatement Statement
174 HiLink winbatchTodo Todo 164 HiLink winbatchTodo Todo
175 HiLink winbatchString String 165 HiLink winbatchString String
176 HiLink winbatchVar Type 166 HiLink winbatchVar Type
177 HiLink winbatchComment Comment 167 HiLink winbatchComment Comment
178 HiLink winbatchImplicit Special 168 HiLink winbatchImplicit Special
179 HiLink winbatchNumber Number 169 HiLink winbatchNumber Number
180 HiLink winbatchConstant StorageClass 170 HiLink winbatchConstant StorageClass
181 171
182 delcommand HiLink 172 delcommand HiLink
183 endif
184 173
185 let b:current_syntax = "winbatch" 174 let b:current_syntax = "winbatch"
186 175
187 " vim: ts=8 176 " vim: ts=8