annotate runtime/syntax/apachestyle.vim @ 6441:7cda721eadb0 v7.4.550

updated for version 7.4.550 Problem: curs_rows() function is always called with the second argument false. Solution: Remove the argument. (Christian Brabandt) validate_botline_win() can then also be removed.
author Bram Moolenaar <bram@vim.org>
date Sat, 13 Dec 2014 21:09:57 +0100
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Apache-Style configuration files (proftpd.conf/apache.conf/..)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Christian Hammers <ch@westend.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: none
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " ChangeLog:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " 2001-05-04,ch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " adopted Vim 6.0 syntax style
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " 1999-10-28,ch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " initial release
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " The following formats are recognised:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Apache-style .conf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " # Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Option value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Option value1 value2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Option = value1 value2 #not apache but also allowed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " <Section Name?>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Option value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " <SubSection Name?>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " </SubSection>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " </Section>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match apComment /^\s*#.*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match apOption /^\s*[^ \t#<=]*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 "syn match apLastValue /[^ \t<=#]*$/ contains=apComment ugly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " tags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn region apTag start=/</ end=/>/ contains=apTagOption,apTagError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " the following should originally be " [^<>]+" but this didn't work :(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match apTagOption contained / [-\/_\.:*a-zA-Z0-9]\+/ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match apTagError contained /[^>]</ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 if version >= 508 || !exists("did_apachestyle_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 let did_apachestyle_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 HiLink apComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 HiLink apOption Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 "HiLink apLastValue Identifier ugly?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink apTag Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink apTagOption Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink apTagError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 let b:current_syntax = "apachestyle"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " vim: ts=8