Fix is to runtime/syntax/apache.vim provided with vim. The current syntax file does not handle escaped quotes correctly.
-- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
*** old_apache.vim 2013-09-12 14:16:27.000000000 -0700 --- apache.vim 2012-05-03 18:10:09.000000000 -0700 *************** *** 30,36 **** syn case ignore syn match apacheAnything "\s[^>]*" contained syn match apacheError "\w\+" contained ! syn region apacheString start=+"+ end=+"+ skip=+\\\\\|\\\"+ " Core and mpm 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 --- 30,39 ---- syn case ignore syn match apacheAnything "\s[^>]*" contained syn match apacheError "\w\+" contained ! syn region apacheString start=+"+ end=+"+ skip=+\\\\\|\\\"+ oneline ! ! " Following is to prevent escaped quotes from being parsed as strings. ! syn match apacheSkipQuote +\\"+ " Core and mpm 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
