213 lines · 14.8 KB · Text
RawDownload
" Vim syntax file" This is a GENERATED FILE. Please always refer to source file at the URI below." Language: Apache configuration (httpd.conf, srm.conf, access.conf, .htaccess)" Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>" License: This file can be redistribued and/or modified under the same terms"		as Vim itself." Last Change: 2006-12-13" URL: http://trific.ath.cx/Ftp/vim/syntax/apache.vim" Notes: Last synced with apache-2.2.3, version 1.x is no longer supported" TODO: see particular FIXME's scattered through the file"		make it really linewise?"		+ add `display' where appropriate " Setupif version >= 600	if exists("b:current_syntax")		finish	endifelse	syntax clearendif syn case ignore " Base constructssyn match apacheComment "^\s*#.*$" contains=apacheFixmesyn match apacheUserID "#-\?\d\+\>"syn case matchsyn keyword apacheFixme FIXME TODO XXX NOTsyn case ignoresyn match apacheAnything "\s[^>]*" containedsyn match apacheError "\w\+" containedsyn region apacheString start=+"+ end=+"+ skip=+\\\\\|\\\"+ " Core and mpmsyn 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 UseCanonicalNamesyn keyword apacheDeclaration AcceptPathInfo CGIMapExtension EnableMMAP FileETag ForceType LimitXMLRequestBody SetHandler SetInputFilter SetOutputFiltersyn keyword apacheDeclaration AcceptFilter AllowEncodedSlashes EnableSendfile LimitInternalRecursion TraceEnablesyn keyword apacheOption INode MTime Sizesyn keyword apacheOption Any All On Off Double EMail DNS Min Minimal OS Prod ProductOnly Fullsyn keyword apacheOption emerg alert crit error warn notice info debugsyn keyword apacheOption registry script inetd standalonesyn match apacheOptionOption "[+-]\?\<\(ExecCGI\|FollowSymLinks\|Includes\|IncludesNoExec\|Indexes\|MultiViews\|SymLinksIfOwnerMatch\)\>"syn keyword apacheOption user groupsyn match apacheOption "\<valid-user\>"syn case matchsyn keyword apacheMethodOption GET POST PUT DELETE CONNECT OPTIONS TRACE PATCH PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK containedsyn case ignoresyn match apacheSection "<\/\=\(Directory\|DirectoryMatch\|Files\|FilesMatch\|IfModule\|IfDefine\|Location\|LocationMatch\|VirtualHost\)[^>]*>" contains=apacheAnythingsyn match apacheLimitSection "<\/\=\(Limit\|LimitExcept\)[^>]*>" contains=apacheLimitSectionKeyword,apacheMethodOption,apacheErrorsyn keyword apacheLimitSectionKeyword Limit LimitExcept containedsyn match apacheAuthType "AuthType\s.*$" contains=apacheAuthTypeValuesyn keyword apacheAuthTypeValue Basic Digestsyn match apacheAllowOverride "AllowOverride\s.*$" contains=apacheAllowOverrideValue,apacheCommentsyn keyword apacheAllowOverrideValue AuthConfig FileInfo Indexes Limit Options containedsyn keyword apacheDeclaration CoreDumpDirectory EnableExceptionHook GracefulShutdownTimeout Group Listen ListenBacklog LockFile MaxClients MaxMemFree MaxRequestsPerChild MaxSpareThreads MaxSpareThreadsPerChild MinSpareThreads NumServers PidFile ScoreBoardFile SendBufferSize ServerLimit StartServers StartThreads ThreadLimit ThreadsPerChild Usersyn keyword apacheDeclaration MaxThreads ThreadStackSizesyn keyword apacheDeclaration Win32DisableAcceptExsyn keyword apacheDeclaration AssignUserId ChildPerUserIdsyn keyword apacheDeclaration AcceptMutex MaxSpareServers MinSpareServerssyn keyword apacheOption flock fcntl sysvsem pthread " Modulessyn keyword apacheDeclaration Action Scriptsyn keyword apacheDeclaration Alias AliasMatch Redirect RedirectMatch RedirectTemp RedirectPermanent ScriptAlias ScriptAliasMatchsyn keyword apacheOption permanent temp seeother gonesyn keyword apacheDeclaration AuthAuthoritative AuthGroupFile AuthUserFilesyn keyword apacheDeclaration AuthBasicAuthoritative AuthBasicProvidersyn keyword apacheDeclaration AuthDigestAlgorithm AuthDigestDomain AuthDigestNcCheck AuthDigestNonceFormat AuthDigestNonceLifetime AuthDigestProvider AuthDigestQop AuthDigestShmemSizesyn keyword apacheOption none auth auth-int MD5 MD5-sesssyn match apacheSection "<\/\=\(<AuthnProviderAlias\)[^>]*>" contains=apacheAnythingsyn keyword apacheDeclaration Anonymous Anonymous_Authoritative Anonymous_LogEmail Anonymous_MustGiveEmail Anonymous_NoUserID Anonymous_VerifyEmailsyn keyword apacheDeclaration AuthDBDUserPWQuery AuthDBDUserRealmQuerysyn keyword apacheDeclaration AuthDBMGroupFile AuthDBMAuthoritativesyn keyword apacheDeclaration AuthDBM TypeAuthDBMUserFilesyn keyword apacheOption default SDBM GDBM NDBM DBsyn keyword apacheDeclaration AuthDefaultAuthoritativesyn keyword apacheDeclaration AuthUserFilesyn keyword apacheDeclaration AuthLDAPBindON AuthLDAPEnabled AuthLDAPFrontPageHack AuthLDAPStartTLSsyn keyword apacheDeclaration AuthLDAPBindDN AuthLDAPBindPassword AuthLDAPCharsetConfig AuthLDAPCompareDNOnServer AuthLDAPDereferenceAliases AuthLDAPGroupAttribute AuthLDAPGroupAttributeIsDN AuthLDAPRemoteUserIsDN AuthLDAPUrl AuthzLDAPAuthoritativesyn keyword apacheOption always never searching findingsyn keyword apacheOption ldap-user ldap-group ldap-dn ldap-attribute ldap-filtersyn keyword apacheDeclaration AuthDBMGroupFile AuthzDBMAuthoritative AuthzDBMTypesyn keyword apacheDeclaration AuthzDefaultAuthoritativesyn keyword apacheDeclaration AuthGroupFile AuthzGroupFileAuthoritativesyn match apacheAllowDeny "Allow\s\+from.*$" contains=apacheAllowDenyValue,apacheCommentsyn match apacheAllowDeny "Deny\s\+from.*$" contains=apacheAllowDenyValue,apacheCommentsyn keyword apacheAllowDenyValue All None containedsyn match apacheOrder "^\s*Order\s.*$" contains=apacheOrderValue,apacheCommentsyn keyword apacheOrderValue Deny Allow containedsyn keyword apacheDeclaration  AuthzOwnerAuthoritativesyn keyword apacheDeclaration  AuthzUserAuthoritativesyn keyword apacheDeclaration AddAlt AddAltByEncoding AddAltByType AddDescription AddIcon AddIconByEncoding AddIconByType DefaultIcon HeaderName IndexIgnore IndexOptions IndexOrderDefault ReadmeNamesyn keyword apacheDeclaration IndexStyleSheetsyn keyword apacheOption DescriptionWidth FancyIndexing FoldersFirst IconHeight IconsAreLinks IconWidth NameWidth ScanHTMLTitles SuppressColumnSorting SuppressDescription SuppressHTMLPreamble SuppressLastModified SuppressSize TrackModifiedsyn keyword apacheOption Ascending Descending Name Date Size Descriptionsyn keyword apacheOption HTMLTable SuppressIcon SuppressRules VersionSort XHTMLsyn keyword apacheOption IgnoreClient IgnoreCase ShowForbidden SuppresRulessyn keyword apacheDeclaration CacheForceCompletion CacheMaxStreamingBuffersyn keyword apacheDeclaration CacheDefaultExpire CacheDisable CacheEnable CacheIgnoreCacheControl CacheIgnoreHeaders CacheIgnoreNoLastMod CacheLastModifiedFactor CacheMaxExpire CacheStoreNoStore CacheStorePrivatesyn keyword apacheDeclaration MetaFiles MetaDir MetaSuffixsyn keyword apacheDeclaration ScriptLog ScriptLogLength ScriptLogBuffersyn keyword apacheDeclaration ScriptStocksyn keyword apacheDeclaration CharsetDefault CharsetOptions CharsetSourceEncsyn keyword apacheOption DebugLevel ImplicitAdd NoImplicitAddsyn keyword apacheDeclaration Dav DavDepthInfinity DavMinTimeoutsyn keyword apacheDeclaration DavLockDBsyn keyword apacheDeclaration DavGenericLockDBsyn keyword apacheDeclaration DBDExptime DBDKeep DBDMax DBDMin DBDParams DBDPersist DBDPrepareSQL DBDriversyn keyword apacheDeclaration DeflateCompressionLevel DeflateBufferSize DeflateFilterNote DeflateMemLevel DeflateWindowSizesyn keyword apacheDeclaration DirectoryIndex DirectorySlashsyn keyword apacheDeclaration CacheExpiryCheck CacheGcClean CacheGcDaily CacheGcInterval CacheGcMemUsage CacheGcUnused CacheSize CacheTimeMarginsyn keyword apacheDeclaration CacheDirLength CacheDirLevels CacheMaxFileSize CacheMinFileSize CacheRootsyn keyword apacheDeclaration DumpIOInput DumpIOOutputsyn keyword apacheDeclaration ProtocolEchosyn keyword apacheDeclaration PassEnv SetEnv UnsetEnvsyn keyword apacheDeclaration Examplesyn keyword apacheDeclaration ExpiresActive ExpiresByType ExpiresDefaultsyn keyword apacheDeclaration ExtFilterDefine ExtFilterOptionssyn keyword apacheOption PreservesContentLength DebugLevel LogStderr NoLogStderrsyn match apacheOption "\<\(cmd\|mode\|intype\|outtype\|ftype\|disableenv\|enableenv\)\ze="syn keyword apacheDeclaration CacheFile MMapFilesyn keyword apacheDeclaration FilterChain FilterDeclare FilterProtocol FilterProvider FilterTracesyn keyword apacheDeclaration Headersyn keyword apacheDeclaration RequestHeadersyn keyword apacheOption set unset append addsyn keyword apacheDeclaration IdentityCheck IdentityCheckTimeoutsyn keyword apacheDeclaration ImapMenu ImapDefault ImapBasesyn keyword apacheOption none formatted semiformatted unformattedsyn keyword apacheOption nocontent referer error mapsyn keyword apacheDeclaration SSIEndTag SSIErrorMsg SSIStartTag SSITimeFormat SSIUndefinedEcho XBitHacksyn keyword apacheOption on off fullsyn keyword apacheDeclaration AddModuleInfosyn keyword apacheDeclaration ISAPIReadAheadBuffer ISAPILogNotSupported ISAPIAppendLogToErrors ISAPIAppendLogToQuerysyn keyword apacheDeclaration ISAPICacheFile ISAIPFakeAsyncsyn keyword apacheDeclaration LDAPCertDBPathsyn keyword apacheDeclaration LDAPCacheEntries LDAPCacheTTL LDAPConnectionTimeout LDAPOpCacheEntries LDAPOpCacheTTL LDAPSharedCacheFile LDAPSharedCacheSize LDAPTrustedClientCert LDAPTrustedGlobalCert LDAPTrustedMode LDAPVerifyServerCertsyn 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_PFXsyn keyword apacheDeclaration BufferedLogs CookieLog CustomLog LogFormat TransferLogsyn keyword apacheDeclaration ForensicLogsyn keyword apacheDeclaration MCacheMaxObjectCount MCacheMaxObjectSize MCacheMaxStreamingBuffer MCacheMinObjectSize MCacheRemovalAlgorithm MCacheSizesyn keyword apacheDeclaration AddCharset AddEncoding AddHandler AddLanguage AddType DefaultLanguage RemoveEncoding RemoveHandler RemoveType TypesConfigsyn keyword apacheDeclaration AddInputFilter AddOutputFilter ModMimeUsePathInfo MultiviewsMatch RemoveInputFilter RemoveOutputFilter RemoveCharsetsyn keyword apacheOption NegotiatedOnly Filters Handlerssyn keyword apacheDeclaration MimeMagicFilesyn keyword apacheDeclaration MMapFilesyn keyword apacheDeclaration CacheNegotiatedDocs LanguagePriority ForceLanguagePrioritysyn keyword apacheDeclaration NWSSLTrustedCerts NWSSLUpgradeable SecureListensyn keyword apacheDeclaration PerlModule PerlRequire PerlTaintCheck PerlWarnsyn keyword apacheDeclaration PerlSetVar PerlSetEnv PerlPassEnv PerlSetupEnvsyn keyword apacheDeclaration PerlInitHandler PerlPostReadRequestHandler PerlHeaderParserHandlersyn keyword apacheDeclaration PerlTransHandler PerlAccessHandler PerlAuthenHandler PerlAuthzHandlersyn keyword apacheDeclaration PerlTypeHandler PerlFixupHandler PerlHandler PerlLogHandlersyn keyword apacheDeclaration PerlCleanupHandler PerlChildInitHandler PerlChildExitHandlersyn keyword apacheDeclaration PerlRestartHandler PerlDispatchHandlersyn keyword apacheDeclaration PerlFreshRestart PerlSendHeadersyn keyword apacheDeclaration php_value php_flag php_admin_value php_admin_flagsyn match apacheSection "<\/\=\(Proxy\|ProxyMatch\)[^>]*>" contains=apacheAnythingsyn keyword apacheDeclaration AllowCONNECT NoProxy ProxyBadHeader ProxyBlock ProxyDomain ProxyErrorOverride ProxyIOBufferSize ProxyMaxForwards ProxyPass ProxyPassReverse ProxyPassReverseCookieDomain ProxyPassReverseCookiePath ProxyPreserveHost ProxyReceiveBufferSize ProxyRemote ProxyRemoteMatch ProxyRequests ProxyTimeout ProxyViasyn keyword apacheDeclaration RewriteBase RewriteCond RewriteEngine RewriteLock RewriteLog RewriteLogLevel RewriteMap RewriteOptions RewriteRulesyn keyword apacheOption inheritsyn keyword apacheDeclaration BrowserMatch BrowserMatchNoCase SetEnvIf SetEnvIfNoCasesyn keyword apacheDeclaration LoadFile LoadModulesyn keyword apacheDeclaration CheckSpelling CheckCaseOnlysyn 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 SSLVerifyDepthsyn match apacheOption "[+-]\?\<\(StdEnvVars\|CompatEnvVars\|ExportCertData\|FakeBasicAuth\|StrictRequire\|OptRenegotiate\)\>"syn keyword apacheOption builtin semsyn match apacheOption "\(file\|exec\|egd\|dbm\|shm\):"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\)\>"syn keyword apacheOption optional optional_no_casyn keyword apacheDeclaration ExtendedStatussyn keyword apacheDeclaration SuexecUserGroupsyn keyword apacheDeclaration UserDirsyn keyword apacheDeclaration CookieDomain CookieExpires CookieName CookieStyle CookieTrackingsyn keyword apacheOption Netscape Cookie Cookie2 RFC2109 RFC2965syn match apacheSection "<\/\=\(<IfVersion\)[^>]*>" contains=apacheAnythingsyn keyword apacheDeclaration VirtualDocumentRoot VirtualDocumentRootIP VirtualScriptAlias VirtualScriptAliasIP " Define the default highlightingif version >= 508 || !exists("did_apache_syntax_inits")	if version < 508		let did_apache_syntax_inits = 1		command -nargs=+ HiLink hi link <args>	else		command -nargs=+ HiLink hi def link <args>	endif 	HiLink apacheAllowOverride apacheDeclaration	HiLink apacheAllowOverrideValue apacheOption	HiLink apacheAuthType apacheDeclaration	HiLink apacheAuthTypeValue apacheOption	HiLink apacheOptionOption apacheOption	HiLink apacheDeclaration Function	HiLink apacheAnything apacheOption	HiLink apacheOption Number	HiLink apacheComment Comment	HiLink apacheFixme Todo	HiLink apacheLimitSectionKeyword apacheLimitSection	HiLink apacheLimitSection apacheSection	HiLink apacheSection Label	HiLink apacheMethodOption Type	HiLink apacheAllowDeny Include	HiLink apacheAllowDenyValue Identifier	HiLink apacheOrder Special	HiLink apacheOrderValue String	HiLink apacheString String	HiLink apacheError Error	HiLink apacheUserID Number 	delcommand HiLinkendif let b:current_syntax = "apache"