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