comparison runtime/syntax/apachestyle.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
18 " Option value 18 " Option value
19 " <SubSection Name?> 19 " <SubSection Name?>
20 " </SubSection> 20 " </SubSection>
21 " </Section> 21 " </Section>
22 22
23 " For version 5.x: Clear all syntax items 23 " quit when a syntax file was already loaded
24 " For version 6.x: Quit when a syntax file was already loaded 24 if exists("b:current_syntax")
25 if version < 600
26 syntax clear
27 elseif exists("b:current_syntax")
28 finish 25 finish
29 endif 26 endif
30 27
31 syn case ignore 28 syn case ignore
32 29
39 " the following should originally be " [^<>]+" but this didn't work :( 36 " the following should originally be " [^<>]+" but this didn't work :(
40 syn match apTagOption contained / [-\/_\.:*a-zA-Z0-9]\+/ms=s+1 37 syn match apTagOption contained / [-\/_\.:*a-zA-Z0-9]\+/ms=s+1
41 syn match apTagError contained /[^>]</ms=s+1 38 syn match apTagError contained /[^>]</ms=s+1
42 39
43 " Define the default highlighting. 40 " Define the default highlighting.
44 " For version 5.7 and earlier: only when not done already 41 " Only when an item doesn't have highlighting yet
45 " For version 5.8 and later: only when an item doesn't have highlighting yet 42 command -nargs=+ HiLink hi def link <args>
46 if version >= 508 || !exists("did_apachestyle_syn_inits")
47 if version < 508
48 let did_apachestyle_syn_inits = 1
49 command -nargs=+ HiLink hi link <args>
50 else
51 command -nargs=+ HiLink hi def link <args>
52 endif
53 43
54 HiLink apComment Comment 44 HiLink apComment Comment
55 HiLink apOption Keyword 45 HiLink apOption Keyword
56 "HiLink apLastValue Identifier ugly? 46 "HiLink apLastValue Identifier ugly?
57 HiLink apTag Special 47 HiLink apTag Special
58 HiLink apTagOption Identifier 48 HiLink apTagOption Identifier
59 HiLink apTagError Error 49 HiLink apTagError Error
60 50
61 delcommand HiLink 51 delcommand HiLink
62 endif
63 52
64 let b:current_syntax = "apachestyle" 53 let b:current_syntax = "apachestyle"
65 " vim: ts=8 54 " vim: ts=8