annotate runtime/syntax/apache.vim @ 217:89114a6baf3c

updated for version 7.0061
author vimboss
date Fri, 18 Mar 2005 20:27:04 +0000
parents 3fc0f57ecb91
children 01583c79d5f4
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 " This is a GENERATED FILE. Please always refer to source file at the URI below.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Language: Apache configuration (httpd.conf, srm.conf, access.conf, .htaccess)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2002-10-15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://trific.ath.cx/Ftp/vim/syntax/apache.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Note: define apache_version to your Apache version, e.g. "1.3", "2", "2.0.39"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Setup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 if exists("apache_version")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 let s:av = apache_version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 let s:av = "1.3"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 let s:av = substitute(s:av, "[^.0-9]", "", "g")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 let s:av = substitute(s:av, "^\\d\\+$", "\\0.999", "")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 let s:av = substitute(s:av, "^\\d\\+\\.\\d\\+$", "\\0.999", "")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 let s:av = substitute(s:av, "\\<\\d\\>", "0\\0", "g")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 let s:av = substitute(s:av, "\\<\\d\\d\\>", "0\\0", "g")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 let s:av = substitute(s:av, "[.]", "", "g")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " Base constructs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match apacheComment "^\s*#.*$" contains=apacheFixme
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match apacheUserID "#-\?\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword apacheFixme FIXME TODO XXX NOT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match apacheAnything "\s[^>]*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match apacheError "\w\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn region apacheString start=+"+ end=+"+ skip=+\\\\\|\\\"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " Core and mpm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword apacheDeclaration AccessFileName AddDefaultCharset AllowOverride AuthName AuthType ContentDigest DefaultType DocumentRoot ErrorDocument ErrorLog HostNameLookups IdentityCheck Include KeepAlive KeepAliveTimeout LimitRequestBody LimitRequestFields LimitRequestFieldsize LimitRequestLine LogLevel MaxKeepAliveRequests NameVirtualHost Options Require RLimitCPU RLimitMEM RLimitNPROC Satisfy ScriptInterpreterSource ServerAdmin ServerAlias ServerName ServerPath ServerRoot ServerSignature ServerTokens TimeOut UseCanonicalName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword apacheDeclaration AccessConfig AddModule BindAddress BS2000Account ClearModuleList CoreDumpDirectory Group Listen ListenBacklog LockFile MaxClients MaxRequestsPerChild MaxSpareServers MinSpareServers PidFile Port ResourceConfig ScoreBoardFile SendBufferSize ServerType StartServers ThreadsPerChild ThreadStackSize User
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword apacheDeclaration AcceptPathInfo CGIMapExtension EnableMMAP FileETag ForceType LimitXMLRequestBody SetHandler SetInputFilter SetOutputFilter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword apacheOption INode MTime Size
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword apacheOption Any All On Off Double EMail DNS Min Minimal OS Prod ProductOnly Full
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword apacheOption emerg alert crit error warn notice info debug
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword apacheOption registry script inetd standalone
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match apacheOptionOption "[+-]\?\<\(ExecCGI\|FollowSymLinks\|Includes\|IncludesNoExec\|Indexes\|MultiViews\|SymLinksIfOwnerMatch\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword apacheOption user group valid-user
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword apacheMethodOption GET POST PUT DELETE CONNECT OPTIONS TRACE PATCH PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match apacheSection "<\/\=\(Directory\|DirectoryMatch\|Files\|FilesMatch\|IfModule\|IfDefine\|Location\|LocationMatch\|VirtualHost\)\+.*>" contains=apacheAnything
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match apacheLimitSection "<\/\=\(Limit\|LimitExcept\)\+.*>" contains=apacheLimitSectionKeyword,apacheMethodOption,apacheError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword apacheLimitSectionKeyword Limit LimitExcept contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match apacheAuthType "AuthType\s.*$" contains=apacheAuthTypeValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword apacheAuthTypeValue Basic Digest
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match apacheAllowOverride "AllowOverride\s.*$" contains=apacheAllowOverrideValue,apacheComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword apacheAllowOverrideValue AuthConfig FileInfo Indexes Limit Options contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword apacheDeclaration CoreDumpDirectory Group Listen ListenBacklog LockFile MaxClients MaxMemFree MaxRequestsPerChild MaxSpareThreads MaxSpareThreadsPerChild MinSpareThreads NumServers PidFile ScoreBoardFile SendBufferSize ServerLimit StartServers StartThreads ThreadLimit ThreadsPerChild User
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword apacheDeclaration MaxThreads ThreadStackSize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword apacheDeclaration AssignUserId ChildPerUserId
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword apacheDeclaration AcceptMutex MaxSpareServers MinSpareServers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword apacheOption flock fcntl sysvsem pthread
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " Modules
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn match apacheAllowDeny "Allow\s\+from.*$" contains=apacheAllowDenyValue,apacheComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match apacheAllowDeny "Deny\s\+from.*$" contains=apacheAllowDenyValue,apacheComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword apacheAllowDenyValue All None contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn match apacheOrder "^\s*Order\s.*$" contains=apacheOrderValue,apacheComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword apacheOrderValue Deny Allow contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword apacheDeclaration Action Script
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword apacheDeclaration Alias AliasMatch Redirect RedirectMatch RedirectTemp RedirectPermanent ScriptAlias ScriptAliasMatch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword apacheOption permanent temp seeother gone
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword apacheDeclaration AuthAuthoritative AuthGroupFile AuthUserFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn keyword apacheDeclaration Anonymous Anonymous_Authoritative Anonymous_LogEmail Anonymous_MustGiveEmail Anonymous_NoUserID Anonymous_VerifyEmail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword apacheDeclaration AuthDBGroupFile AuthDBUserFile AuthDBAuthoritative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn keyword apacheDeclaration AuthDBMGroupFile AuthDBMUserFile AuthDBMAuthoritative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword apacheDeclaration AuthDBMType
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn keyword apacheOption default SDBM GDBM NDBM DB
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword apacheDeclaration AuthDigestAlgorithm AuthDigestDomain AuthDigestFile AuthDigestGroupFile AuthDigestNcCheck AuthDigestNonceFormat AuthDigestNonceLifetime AuthDigestQop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword apacheOption none auth auth-int MD5 MD5-sess
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword apacheDeclaration AuthLDAPAuthoritative AuthLDAPBindON AuthLDAPBindPassword AuthLDAPCompareDNOnServer AuthLDAPDereferenceAliases AuthLDAPEnabled AuthLDAPFrontPageHack AuthLDAPGroupAttribute AuthLDAPGroupAttributeIsDN AuthLDAPRemoteUserIsDN AuthLDAPStartTLS AuthLDAPUrl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword apacheOption always never searching finding
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword apacheDeclaration FancyIndexing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn keyword apacheDeclaration AddAlt AddAltByEncoding AddAltByType AddDescription AddIcon AddIconByEncoding AddIconByType DefaultIcon HeaderName IndexIgnore IndexOptions IndexOrderDefault ReadmeName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword apacheOption DescriptionWidth FancyIndexing FoldersFirst IconHeight IconsAreLinks IconWidth NameWidth ScanHTMLTitles SuppressColumnSorting SuppressDescription SuppressHTMLPreamble SuppressLastModified SuppressSize TrackModified
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword apacheOption Ascending Descending Name Date Size Description
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword apacheOption HTMLTable SupressIcon SupressRules VersionSort
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword apacheDeclaration BrowserMatch BrowserMatchNoCase
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn keyword apacheDeclaration CacheDefaultExpire CacheEnable CacheForceCompletion CacheIgnoreCacheControl CacheIgnoreNoLastMod CacheLastModifiedFactor CacheMaxExpire CacheMaxStreamingBuffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword apacheDeclaration MetaFiles MetaDir MetaSuffix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn keyword apacheDeclaration ScriptLog ScriptLogLength ScriptLogBuffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword apacheDeclaration ScriptStock
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword apacheDeclaration CharsetDefault CharsetOptions CharsetSourceEnc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword apacheOption DebugLevel ImplicitAdd NoImplicitAdd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn keyword apacheDeclaration Dav DavDepthInfinity DavLockDB DavMinTimeout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn keyword apacheDeclaration Define
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 end
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn keyword apacheDeclaration DeflateBufferSize DeflateFilterNote DeflateMemLevel DeflateWindowSize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn keyword apacheDeclaration AuthDigestFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn keyword apacheDeclaration DirectoryIndex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn keyword apacheDeclaration ProtocolEcho
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn keyword apacheDeclaration PassEnv SetEnv UnsetEnv
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn keyword apacheDeclaration Example
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn keyword apacheDeclaration ExpiresActive ExpiresByType ExpiresDefault
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn keyword apacheDeclaration ExtFilterDefine ExtFilterOptions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn keyword apacheOption PreservesContentLength DebugLevel LogStderr NoLogStderr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn keyword apacheDeclaration CacheFile MMapFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn keyword apacheDeclaration Header
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn keyword apacheDeclaration RequestHeader
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn keyword apacheOption set unset append add
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn keyword apacheDeclaration ImapMenu ImapDefault ImapBase
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn keyword apacheOption none formatted semiformatted unformatted
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn keyword apacheOption nocontent referer error map
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn keyword apacheDeclaration XBitHack
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn keyword apacheDeclaration SSIEndTag SSIErrorMsg SSIStartTag SSITimeFormat SSIUndefinedEcho
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn keyword apacheOption on off full
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn keyword apacheDeclaration AddModuleInfo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn keyword apacheDeclaration ISAPIReadAheadBuffer ISAPILogNotSupported ISAPIAppendLogToErrors ISAPIAppendLogToQuery
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn keyword apacheDeclaration ISAPICacheFile ISAIPFakeAsync
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn keyword apacheDeclaration LDAPCacheEntries LDAPCacheTTL LDAPCertDBPath LDAPOpCacheEntries LDAPOpCacheTTL LDAPSharedCacheSize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn keyword apacheDeclaration AgentLog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn keyword apacheDeclaration CookieLog CustomLog LogFormat TransferLog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn keyword apacheDeclaration RefererIgnore RefererLog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syn keyword apacheDeclaration AddCharset AddEncoding AddHandler AddLanguage AddType DefaultLanguage RemoveEncoding RemoveHandler RemoveType TypesConfig
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn keyword apacheDeclaration ForceType SetHandler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 syn keyword apacheDeclaration AddInputFilter AddOutputFilter ModMimeUsePathInfo MultiviewsMatch RemoveInputFilter RemoveOutputFilter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn keyword apacheDeclaration MimeMagicFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn keyword apacheDeclaration MMapFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn keyword apacheDeclaration CacheNegotiatedDocs LanguagePriority
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn keyword apacheDeclaration ForceLanguagePriority
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn keyword apacheDeclaration PerlModule PerlRequire PerlTaintCheck PerlWarn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 syn keyword apacheDeclaration PerlSetVar PerlSetEnv PerlPassEnv PerlSetupEnv
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn keyword apacheDeclaration PerlInitHandler PerlPostReadRequestHandler PerlHeaderParserHandler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn keyword apacheDeclaration PerlTransHandler PerlAccessHandler PerlAuthenHandler PerlAuthzHandler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 syn keyword apacheDeclaration PerlTypeHandler PerlFixupHandler PerlHandler PerlLogHandler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 syn keyword apacheDeclaration PerlCleanupHandler PerlChildInitHandler PerlChildExitHandler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 syn keyword apacheDeclaration PerlRestartHandler PerlDispatchHandler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn keyword apacheDeclaration PerlFreshRestart PerlSendHeader
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 syn keyword apacheDeclaration php_value php_flag php_admin_value php_admin_flag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn keyword apacheDeclaration AllowCONNECT NoProxy ProxyBlock ProxyDomain ProxyPass ProxyPassReverse ProxyReceiveBufferSize ProxyRemote ProxyRequests ProxyVia
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn keyword apacheDeclaration CacheRoot CacheSize CacheMaxExpire CacheDefaultExpire CacheLastModifiedFactor CacheGcInterval CacheDirLevels CacheDirLength CacheForceCompletion NoCache
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 syn keyword apacheOption block
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 syn match apacheSection "<\/\=\(Proxy\|ProxyMatch\)\+.*>" contains=apacheAnything
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 syn keyword apacheDeclaration ProxyErrorOverride ProxyIOBufferSize ProxyMaxForwards ProxyPreserveHost ProxyRemoteMatch ProxyTimeout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 syn keyword apacheDeclaration RewriteEngine RewriteOptions RewriteLog RewriteLogLevel RewriteLock RewriteMap RewriteBase RewriteCond RewriteRule
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 syn keyword apacheOption inherit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 syn keyword apacheDeclaration RoamingAlias
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 syn keyword apacheDeclaration BrowserMatch BrowserMatchNoCase SetEnvIf SetEnvIfNoCase
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 syn keyword apacheDeclaration LoadFile LoadModule
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 syn keyword apacheDeclaration CheckSpelling
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 syn keyword apacheDeclaration SSLCACertificateFile SSLCACertificatePath SSLCARevocationFile SSLCARevocationPath SSLCertificateChainFile SSLCertificateFile SSLCertificateKeyFile SSLCipherSuite SSLEngine SSLMutex SSLOptions SSLPassPhraseDialog SSLProtocol SSLRandomSeed SSLRequire SSLRequireSSL SSLSessionCache SSLSessionCacheTimeout SSLVerifyClient SSLVerifyDepth
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 syn keyword apacheDeclaration SSLLog SSLLogLevel
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 syn keyword apacheDeclaration SSLProxyCACertificateFile SSLProxyCACertificatePath SSLProxyCARevocationFile SSLProxyCARevocationPath SSLProxyCipherSuite SSLProxyEngine SSLProxyMachineCertificateFile SSLProxyMachineCertificatePath SSLProxyProtocol SSLProxyVerify SSLProxyVerifyDepth
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn match apacheOption "[+-]\?\<\(StdEnvVars\|CompatEnvVars\|ExportCertData\|FakeBasicAuth\|StrictRequire\|OptRenegotiate\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 syn keyword apacheOption builtin sem
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 syn match apacheOption "\(file\|exec\|egd\|dbm\|shm\):"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 if s:av < "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 syn match apacheOption "[+-]\?\<\(SSLv2\|SSLv3\|TLSv1\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 syn match apacheOption "[+-]\?\<\(SSLv2\|SSLv3\|TLSv1\|kRSA\|kHDr\|kDHd\|kEDH\|aNULL\|aRSA\|aDSS\|aRH\|eNULL\|DES\|3DES\|RC2\|RC4\|IDEA\|MD5\|SHA1\|SHA\|EXP\|EXPORT40\|EXPORT56\|LOW\|MEDIUM\|HIGH\|RSA\|DH\|EDH\|ADH\|DSS\|NULL\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 syn keyword apacheOption optional require optional_no_ca
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 syn keyword apacheDeclaration ExtendedStatus
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 syn keyword apacheDeclaration SuexecUserGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn keyword apacheDeclaration UserDir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 syn keyword apacheDeclaration CookieExpires CookieName CookieTracking
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 if s:av >= "002000000"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 syn keyword apacheDeclaration CookieDomain CookieStyle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 syn keyword apacheOption Netscape Cookie Cookie2 RFC2109 RFC2965
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 syn keyword apacheDeclaration VirtualDocumentRoot VirtualDocumentRootIP VirtualScriptAlias VirtualScriptAliasIP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 " Define the default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 if version >= 508 || !exists("did_apache_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 let did_apache_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 HiLink apacheAllowOverride apacheDeclaration
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 HiLink apacheAllowOverrideValue apacheOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 HiLink apacheAuthType apacheDeclaration
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 HiLink apacheAuthTypeValue apacheOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 HiLink apacheOptionOption apacheOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 HiLink apacheDeclaration Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 HiLink apacheAnything apacheOption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 HiLink apacheOption Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 HiLink apacheComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 HiLink apacheFixme Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 HiLink apacheLimitSectionKeyword apacheLimitSection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 HiLink apacheLimitSection apacheSection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 HiLink apacheSection Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 HiLink apacheMethodOption Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 HiLink apacheAllowDeny Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 HiLink apacheAllowDenyValue Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 HiLink apacheOrder Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 HiLink apacheOrderValue String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 HiLink apacheString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 HiLink apacheError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 HiLink apacheUserID Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 let b:current_syntax = "apache"