Mercurial > vim
annotate runtime/syntax/apache.vim @ 9566:9ea5a5f6cba2 v7.4.2060
commit https://github.com/vim/vim/commit/a9093fe0946032b1bcaecaad82bfaf6763195aa4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 17 19:02:16 2016 +0200
patch 7.4.2060
Problem: Wrong file name.
Solution: Fix typo.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Jul 2016 19:15:05 +0200 |
parents | c2098c3095e7 |
children | 43efa4f5a8ea |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Apache configuration (httpd.conf, srm.conf, access.conf, .htaccess) | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
1123
diff
changeset
|
3 " Maintainer: David Necas (Yeti) <yeti@physics.muni.cz> |
828 | 4 " License: This file can be redistribued and/or modified under the same terms |
5 " as Vim itself. | |
5697 | 6 " Last Change: 2014-03-04 |
1123 | 7 " Notes: Last synced with apache-2.2.3, version 1.x is no longer supported |
828 | 8 " TODO: see particular FIXME's scattered through the file |
9 " make it really linewise? | |
10 " + add `display' where appropriate | |
7 | 11 |
12 " Setup | |
13 if version >= 600 | |
14 if exists("b:current_syntax") | |
15 finish | |
16 endif | |
17 else | |
18 syntax clear | |
19 endif | |
20 | |
21 syn case ignore | |
22 | |
23 " Base constructs | |
24 syn match apacheComment "^\s*#.*$" contains=apacheFixme | |
828 | 25 syn match apacheUserID "#-\?\d\+\>" |
7 | 26 syn case match |
27 syn keyword apacheFixme FIXME TODO XXX NOT | |
28 syn case ignore | |
29 syn match apacheAnything "\s[^>]*" contained | |
30 syn match apacheError "\w\+" contained | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
1123
diff
changeset
|
31 syn region apacheString start=+"+ end=+"+ skip=+\\\\\|\\\"+ oneline |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
1123
diff
changeset
|
32 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
1123
diff
changeset
|
33 " Following is to prevent escaped quotes from being parsed as strings. |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
1123
diff
changeset
|
34 syn match apacheSkipQuote +\\"+ |
7 | 35 |
36 " Core and mpm | |
37 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 | |
828 | 38 syn keyword apacheDeclaration AcceptPathInfo CGIMapExtension EnableMMAP FileETag ForceType LimitXMLRequestBody SetHandler SetInputFilter SetOutputFilter |
39 syn keyword apacheDeclaration AcceptFilter AllowEncodedSlashes EnableSendfile LimitInternalRecursion TraceEnable | |
40 syn keyword apacheOption INode MTime Size | |
7 | 41 syn keyword apacheOption Any All On Off Double EMail DNS Min Minimal OS Prod ProductOnly Full |
42 syn keyword apacheOption emerg alert crit error warn notice info debug | |
43 syn keyword apacheOption registry script inetd standalone | |
44 syn match apacheOptionOption "[+-]\?\<\(ExecCGI\|FollowSymLinks\|Includes\|IncludesNoExec\|Indexes\|MultiViews\|SymLinksIfOwnerMatch\)\>" | |
828 | 45 syn keyword apacheOption user group |
46 syn match apacheOption "\<valid-user\>" | |
7 | 47 syn case match |
48 syn keyword apacheMethodOption GET POST PUT DELETE CONNECT OPTIONS TRACE PATCH PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK contained | |
49 syn case ignore | |
828 | 50 syn match apacheSection "<\/\=\(Directory\|DirectoryMatch\|Files\|FilesMatch\|IfModule\|IfDefine\|Location\|LocationMatch\|VirtualHost\)[^>]*>" contains=apacheAnything |
51 syn match apacheLimitSection "<\/\=\(Limit\|LimitExcept\)[^>]*>" contains=apacheLimitSectionKeyword,apacheMethodOption,apacheError | |
7 | 52 syn keyword apacheLimitSectionKeyword Limit LimitExcept contained |
53 syn match apacheAuthType "AuthType\s.*$" contains=apacheAuthTypeValue | |
54 syn keyword apacheAuthTypeValue Basic Digest | |
55 syn match apacheAllowOverride "AllowOverride\s.*$" contains=apacheAllowOverrideValue,apacheComment | |
56 syn keyword apacheAllowOverrideValue AuthConfig FileInfo Indexes Limit Options contained | |
828 | 57 syn keyword apacheDeclaration CoreDumpDirectory EnableExceptionHook GracefulShutdownTimeout Group Listen ListenBacklog LockFile MaxClients MaxMemFree MaxRequestsPerChild MaxSpareThreads MaxSpareThreadsPerChild MinSpareThreads NumServers PidFile ScoreBoardFile SendBufferSize ServerLimit StartServers StartThreads ThreadLimit ThreadsPerChild User |
58 syn keyword apacheDeclaration MaxThreads ThreadStackSize | |
59 syn keyword apacheDeclaration Win32DisableAcceptEx | |
60 syn keyword apacheDeclaration AssignUserId ChildPerUserId | |
61 syn keyword apacheDeclaration AcceptMutex MaxSpareServers MinSpareServers | |
62 syn keyword apacheOption flock fcntl sysvsem pthread | |
7 | 63 |
64 " Modules | |
828 | 65 syn keyword apacheDeclaration Action Script |
66 syn keyword apacheDeclaration Alias AliasMatch Redirect RedirectMatch RedirectTemp RedirectPermanent ScriptAlias ScriptAliasMatch | |
67 syn keyword apacheOption permanent temp seeother gone | |
68 syn keyword apacheDeclaration AuthAuthoritative AuthGroupFile AuthUserFile | |
69 syn keyword apacheDeclaration AuthBasicAuthoritative AuthBasicProvider | |
70 syn keyword apacheDeclaration AuthDigestAlgorithm AuthDigestDomain AuthDigestNcCheck AuthDigestNonceFormat AuthDigestNonceLifetime AuthDigestProvider AuthDigestQop AuthDigestShmemSize | |
71 syn keyword apacheOption none auth auth-int MD5 MD5-sess | |
72 syn match apacheSection "<\/\=\(<AuthnProviderAlias\)[^>]*>" contains=apacheAnything | |
73 syn keyword apacheDeclaration Anonymous Anonymous_Authoritative Anonymous_LogEmail Anonymous_MustGiveEmail Anonymous_NoUserID Anonymous_VerifyEmail | |
74 syn keyword apacheDeclaration AuthDBDUserPWQuery AuthDBDUserRealmQuery | |
75 syn keyword apacheDeclaration AuthDBMGroupFile AuthDBMAuthoritative | |
76 syn keyword apacheDeclaration AuthDBM TypeAuthDBMUserFile | |
77 syn keyword apacheOption default SDBM GDBM NDBM DB | |
78 syn keyword apacheDeclaration AuthDefaultAuthoritative | |
79 syn keyword apacheDeclaration AuthUserFile | |
80 syn keyword apacheDeclaration AuthLDAPBindON AuthLDAPEnabled AuthLDAPFrontPageHack AuthLDAPStartTLS | |
81 syn keyword apacheDeclaration AuthLDAPBindDN AuthLDAPBindPassword AuthLDAPCharsetConfig AuthLDAPCompareDNOnServer AuthLDAPDereferenceAliases AuthLDAPGroupAttribute AuthLDAPGroupAttributeIsDN AuthLDAPRemoteUserIsDN AuthLDAPUrl AuthzLDAPAuthoritative | |
82 syn keyword apacheOption always never searching finding | |
83 syn keyword apacheOption ldap-user ldap-group ldap-dn ldap-attribute ldap-filter | |
84 syn keyword apacheDeclaration AuthDBMGroupFile AuthzDBMAuthoritative AuthzDBMType | |
85 syn keyword apacheDeclaration AuthzDefaultAuthoritative | |
86 syn keyword apacheDeclaration AuthGroupFile AuthzGroupFileAuthoritative | |
7 | 87 syn match apacheAllowDeny "Allow\s\+from.*$" contains=apacheAllowDenyValue,apacheComment |
88 syn match apacheAllowDeny "Deny\s\+from.*$" contains=apacheAllowDenyValue,apacheComment | |
89 syn keyword apacheAllowDenyValue All None contained | |
90 syn match apacheOrder "^\s*Order\s.*$" contains=apacheOrderValue,apacheComment | |
91 syn keyword apacheOrderValue Deny Allow contained | |
828 | 92 syn keyword apacheDeclaration AuthzOwnerAuthoritative |
93 syn keyword apacheDeclaration AuthzUserAuthoritative | |
7 | 94 syn keyword apacheDeclaration AddAlt AddAltByEncoding AddAltByType AddDescription AddIcon AddIconByEncoding AddIconByType DefaultIcon HeaderName IndexIgnore IndexOptions IndexOrderDefault ReadmeName |
828 | 95 syn keyword apacheDeclaration IndexStyleSheet |
7 | 96 syn keyword apacheOption DescriptionWidth FancyIndexing FoldersFirst IconHeight IconsAreLinks IconWidth NameWidth ScanHTMLTitles SuppressColumnSorting SuppressDescription SuppressHTMLPreamble SuppressLastModified SuppressSize TrackModified |
97 syn keyword apacheOption Ascending Descending Name Date Size Description | |
1123 | 98 syn keyword apacheOption HTMLTable SuppressIcon SuppressRules VersionSort XHTML |
828 | 99 syn keyword apacheOption IgnoreClient IgnoreCase ShowForbidden SuppresRules |
100 syn keyword apacheDeclaration CacheForceCompletion CacheMaxStreamingBuffer | |
101 syn keyword apacheDeclaration CacheDefaultExpire CacheDisable CacheEnable CacheIgnoreCacheControl CacheIgnoreHeaders CacheIgnoreNoLastMod CacheLastModifiedFactor CacheMaxExpire CacheStoreNoStore CacheStorePrivate | |
7 | 102 syn keyword apacheDeclaration MetaFiles MetaDir MetaSuffix |
103 syn keyword apacheDeclaration ScriptLog ScriptLogLength ScriptLogBuffer | |
828 | 104 syn keyword apacheDeclaration ScriptStock |
105 syn keyword apacheDeclaration CharsetDefault CharsetOptions CharsetSourceEnc | |
106 syn keyword apacheOption DebugLevel ImplicitAdd NoImplicitAdd | |
107 syn keyword apacheDeclaration Dav DavDepthInfinity DavMinTimeout | |
108 syn keyword apacheDeclaration DavLockDB | |
109 syn keyword apacheDeclaration DavGenericLockDB | |
110 syn keyword apacheDeclaration DBDExptime DBDKeep DBDMax DBDMin DBDParams DBDPersist DBDPrepareSQL DBDriver | |
111 syn keyword apacheDeclaration DeflateCompressionLevel DeflateBufferSize DeflateFilterNote DeflateMemLevel DeflateWindowSize | |
112 syn keyword apacheDeclaration DirectoryIndex DirectorySlash | |
113 syn keyword apacheDeclaration CacheExpiryCheck CacheGcClean CacheGcDaily CacheGcInterval CacheGcMemUsage CacheGcUnused CacheSize CacheTimeMargin | |
114 syn keyword apacheDeclaration CacheDirLength CacheDirLevels CacheMaxFileSize CacheMinFileSize CacheRoot | |
115 syn keyword apacheDeclaration DumpIOInput DumpIOOutput | |
116 syn keyword apacheDeclaration ProtocolEcho | |
7 | 117 syn keyword apacheDeclaration PassEnv SetEnv UnsetEnv |
118 syn keyword apacheDeclaration Example | |
119 syn keyword apacheDeclaration ExpiresActive ExpiresByType ExpiresDefault | |
828 | 120 syn keyword apacheDeclaration ExtFilterDefine ExtFilterOptions |
121 syn keyword apacheOption PreservesContentLength DebugLevel LogStderr NoLogStderr | |
122 syn match apacheOption "\<\(cmd\|mode\|intype\|outtype\|ftype\|disableenv\|enableenv\)\ze=" | |
123 syn keyword apacheDeclaration CacheFile MMapFile | |
124 syn keyword apacheDeclaration FilterChain FilterDeclare FilterProtocol FilterProvider FilterTrace | |
7 | 125 syn keyword apacheDeclaration Header |
828 | 126 syn keyword apacheDeclaration RequestHeader |
7 | 127 syn keyword apacheOption set unset append add |
828 | 128 syn keyword apacheDeclaration IdentityCheck IdentityCheckTimeout |
7 | 129 syn keyword apacheDeclaration ImapMenu ImapDefault ImapBase |
130 syn keyword apacheOption none formatted semiformatted unformatted | |
131 syn keyword apacheOption nocontent referer error map | |
828 | 132 syn keyword apacheDeclaration SSIEndTag SSIErrorMsg SSIStartTag SSITimeFormat SSIUndefinedEcho XBitHack |
7 | 133 syn keyword apacheOption on off full |
134 syn keyword apacheDeclaration AddModuleInfo | |
135 syn keyword apacheDeclaration ISAPIReadAheadBuffer ISAPILogNotSupported ISAPIAppendLogToErrors ISAPIAppendLogToQuery | |
828 | 136 syn keyword apacheDeclaration ISAPICacheFile ISAIPFakeAsync |
137 syn keyword apacheDeclaration LDAPCertDBPath | |
138 syn keyword apacheDeclaration LDAPCacheEntries LDAPCacheTTL LDAPConnectionTimeout LDAPOpCacheEntries LDAPOpCacheTTL LDAPSharedCacheFile LDAPSharedCacheSize LDAPTrustedClientCert LDAPTrustedGlobalCert LDAPTrustedMode LDAPVerifyServerCert | |
139 syn keyword apacheOption CA_DER CA_BASE64 CA_CERT7_DB CA_SECMOD CERT_DER CERT_BASE64 CERT_KEY3_DB CERT_NICKNAME CERT_PFX KEY_DER KEY_BASE64 KEY_PFX | |
140 syn keyword apacheDeclaration BufferedLogs CookieLog CustomLog LogFormat TransferLog | |
141 syn keyword apacheDeclaration ForensicLog | |
142 syn keyword apacheDeclaration MCacheMaxObjectCount MCacheMaxObjectSize MCacheMaxStreamingBuffer MCacheMinObjectSize MCacheRemovalAlgorithm MCacheSize | |
7 | 143 syn keyword apacheDeclaration AddCharset AddEncoding AddHandler AddLanguage AddType DefaultLanguage RemoveEncoding RemoveHandler RemoveType TypesConfig |
828 | 144 syn keyword apacheDeclaration AddInputFilter AddOutputFilter ModMimeUsePathInfo MultiviewsMatch RemoveInputFilter RemoveOutputFilter RemoveCharset |
145 syn keyword apacheOption NegotiatedOnly Filters Handlers | |
7 | 146 syn keyword apacheDeclaration MimeMagicFile |
147 syn keyword apacheDeclaration MMapFile | |
828 | 148 syn keyword apacheDeclaration CacheNegotiatedDocs LanguagePriority ForceLanguagePriority |
149 syn keyword apacheDeclaration NWSSLTrustedCerts NWSSLUpgradeable SecureListen | |
7 | 150 syn keyword apacheDeclaration PerlModule PerlRequire PerlTaintCheck PerlWarn |
151 syn keyword apacheDeclaration PerlSetVar PerlSetEnv PerlPassEnv PerlSetupEnv | |
152 syn keyword apacheDeclaration PerlInitHandler PerlPostReadRequestHandler PerlHeaderParserHandler | |
153 syn keyword apacheDeclaration PerlTransHandler PerlAccessHandler PerlAuthenHandler PerlAuthzHandler | |
154 syn keyword apacheDeclaration PerlTypeHandler PerlFixupHandler PerlHandler PerlLogHandler | |
155 syn keyword apacheDeclaration PerlCleanupHandler PerlChildInitHandler PerlChildExitHandler | |
156 syn keyword apacheDeclaration PerlRestartHandler PerlDispatchHandler | |
157 syn keyword apacheDeclaration PerlFreshRestart PerlSendHeader | |
158 syn keyword apacheDeclaration php_value php_flag php_admin_value php_admin_flag | |
828 | 159 syn match apacheSection "<\/\=\(Proxy\|ProxyMatch\)[^>]*>" contains=apacheAnything |
5697 | 160 syn keyword apacheDeclaration AllowCONNECT NoProxy ProxyBadHeader ProxyBlock ProxyDomain ProxyErrorOverride ProxyIOBufferSize ProxyMaxForwards ProxyPass ProxyPassMatch ProxyPassReverse ProxyPassReverseCookieDomain ProxyPassReverseCookiePath ProxyPreserveHost ProxyReceiveBufferSize ProxyRemote ProxyRemoteMatch ProxyRequests ProxyTimeout ProxyVia |
828 | 161 syn keyword apacheDeclaration RewriteBase RewriteCond RewriteEngine RewriteLock RewriteLog RewriteLogLevel RewriteMap RewriteOptions RewriteRule |
7 | 162 syn keyword apacheOption inherit |
163 syn keyword apacheDeclaration BrowserMatch BrowserMatchNoCase SetEnvIf SetEnvIfNoCase | |
164 syn keyword apacheDeclaration LoadFile LoadModule | |
1123 | 165 syn keyword apacheDeclaration CheckSpelling CheckCaseOnly |
828 | 166 syn keyword apacheDeclaration SSLCACertificateFile SSLCACertificatePath SSLCADNRequestFile SSLCADNRequestPath SSLCARevocationFile SSLCARevocationPath SSLCertificateChainFile SSLCertificateFile SSLCertificateKeyFile SSLCipherSuite SSLCryptoDevice SSLEngine SSLHonorCipherOrder SSLMutex SSLOptions SSLPassPhraseDialog SSLProtocol SSLProxyCACertificateFile SSLProxyCACertificatePath SSLProxyCARevocationFile SSLProxyCARevocationPath SSLProxyCipherSuite SSLProxyEngine SSLProxyMachineCertificateFile SSLProxyMachineCertificatePath SSLProxyProtocol SSLProxyVerify SSLProxyVerifyDepth SSLRandomSeed SSLRequire SSLRequireSSL SSLSessionCache SSLSessionCacheTimeout SSLUserName SSLVerifyClient SSLVerifyDepth |
7 | 167 syn match apacheOption "[+-]\?\<\(StdEnvVars\|CompatEnvVars\|ExportCertData\|FakeBasicAuth\|StrictRequire\|OptRenegotiate\)\>" |
168 syn keyword apacheOption builtin sem | |
169 syn match apacheOption "\(file\|exec\|egd\|dbm\|shm\):" | |
828 | 170 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\)\>" |
171 syn keyword apacheOption optional optional_no_ca | |
7 | 172 syn keyword apacheDeclaration ExtendedStatus |
828 | 173 syn keyword apacheDeclaration SuexecUserGroup |
7 | 174 syn keyword apacheDeclaration UserDir |
828 | 175 syn keyword apacheDeclaration CookieDomain CookieExpires CookieName CookieStyle CookieTracking |
176 syn keyword apacheOption Netscape Cookie Cookie2 RFC2109 RFC2965 | |
177 syn match apacheSection "<\/\=\(<IfVersion\)[^>]*>" contains=apacheAnything | |
7 | 178 syn keyword apacheDeclaration VirtualDocumentRoot VirtualDocumentRootIP VirtualScriptAlias VirtualScriptAliasIP |
179 | |
180 " Define the default highlighting | |
181 if version >= 508 || !exists("did_apache_syntax_inits") | |
182 if version < 508 | |
183 let did_apache_syntax_inits = 1 | |
184 command -nargs=+ HiLink hi link <args> | |
185 else | |
186 command -nargs=+ HiLink hi def link <args> | |
187 endif | |
188 | |
189 HiLink apacheAllowOverride apacheDeclaration | |
190 HiLink apacheAllowOverrideValue apacheOption | |
191 HiLink apacheAuthType apacheDeclaration | |
192 HiLink apacheAuthTypeValue apacheOption | |
193 HiLink apacheOptionOption apacheOption | |
194 HiLink apacheDeclaration Function | |
195 HiLink apacheAnything apacheOption | |
196 HiLink apacheOption Number | |
197 HiLink apacheComment Comment | |
198 HiLink apacheFixme Todo | |
199 HiLink apacheLimitSectionKeyword apacheLimitSection | |
200 HiLink apacheLimitSection apacheSection | |
201 HiLink apacheSection Label | |
202 HiLink apacheMethodOption Type | |
203 HiLink apacheAllowDeny Include | |
204 HiLink apacheAllowDenyValue Identifier | |
205 HiLink apacheOrder Special | |
206 HiLink apacheOrderValue String | |
207 HiLink apacheString String | |
208 HiLink apacheError Error | |
209 HiLink apacheUserID Number | |
210 | |
211 delcommand HiLink | |
212 endif | |
213 | |
214 let b:current_syntax = "apache" |