comparison runtime/syntax/aspvbs.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 7bc41231fbc7
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
9 " notation, and extra highlighting. 9 " notation, and extra highlighting.
10 " Thanks to patrick dehne <patrick@steidle.net> for the folding code. 10 " Thanks to patrick dehne <patrick@steidle.net> for the folding code.
11 " Thanks to Dean Hall <hall@apt7.com> for testing the use of classes in 11 " Thanks to Dean Hall <hall@apt7.com> for testing the use of classes in
12 " VBScripts which I've been too scared to do. 12 " VBScripts which I've been too scared to do.
13 13
14 " Quit when a syntax file was already loaded 14 " quit when a syntax file was already loaded
15 if version < 600 15 if exists("b:current_syntax")
16 syn clear
17 elseif exists("b:current_syntax")
18 finish 16 finish
19 endif 17 endif
20 18
21 if !exists("main_syntax") 19 if !exists("main_syntax")
22 let main_syntax = 'aspvbs' 20 let main_syntax = 'aspvbs'
23 endif 21 endif
24 22
25 if version < 600 23 runtime! syntax/html.vim
26 source <sfile>:p:h/html.vim
27 else
28 runtime! syntax/html.vim
29 endif
30 unlet b:current_syntax 24 unlet b:current_syntax
31 25
32 syn cluster htmlPreProc add=AspVBScriptInsideHtmlTags 26 syn cluster htmlPreProc add=AspVBScriptInsideHtmlTags
33 27
34 28
161 syn sync match htmlHighlight grouphere htmlTag "%>" 155 syn sync match htmlHighlight grouphere htmlTag "%>"
162 156
163 157
164 158
165 " Define the default highlighting. 159 " Define the default highlighting.
166 " For version 5.7 and earlier: only when not done already 160 " Only when an item doesn't have highlighting yet
167 " For version 5.8 and later: only when an item doesn't have highlighting yet 161 command -nargs=+ HiLink hi def link <args>
168 if version >= 508 || !exists("did_aspvbs_syn_inits")
169 if version < 508
170 let did_aspvbs_syn_inits = 1
171 command -nargs=+ HiLink hi link <args>
172 else
173 command -nargs=+ HiLink hi def link <args>
174 endif
175 162
176 "HiLink AspVBScript Special 163 "HiLink AspVBScript Special
177 HiLink AspVBSLineNumber Comment 164 HiLink AspVBSLineNumber Comment
178 HiLink AspVBSNumber Number 165 HiLink AspVBSNumber Number
179 HiLink AspVBSError Error 166 HiLink AspVBSError Error
180 HiLink AspVBSStatement Statement 167 HiLink AspVBSStatement Statement
181 HiLink AspVBSString String 168 HiLink AspVBSString String
182 HiLink AspVBSComment Comment 169 HiLink AspVBSComment Comment
183 HiLink AspVBSTodo Todo 170 HiLink AspVBSTodo Todo
184 HiLink AspVBSFunction Identifier 171 HiLink AspVBSFunction Identifier
185 HiLink AspVBSMethods PreProc 172 HiLink AspVBSMethods PreProc
186 HiLink AspVBSEvents Special 173 HiLink AspVBSEvents Special
187 HiLink AspVBSTypeSpecifier Type 174 HiLink AspVBSTypeSpecifier Type
188 175
189 delcommand HiLink 176 delcommand HiLink
190 endif
191 177
192 let b:current_syntax = "aspvbs" 178 let b:current_syntax = "aspvbs"
193 179
194 if main_syntax == 'aspvbs' 180 if main_syntax == 'aspvbs'
195 unlet main_syntax 181 unlet main_syntax