--- /usr/share/vim/vim63/syntax/apache.vim 2005-03-20 13:35:11.000000000 -0800 +++ apache.vim 2005-06-29 00:49:41.367120680 -0700 @@ -52,6 +52,7 @@ endif syn keyword apacheOption Any All On Off Double EMail DNS Min Minimal OS Prod ProductOnly Full syn keyword apacheOption emerg alert crit error warn notice info debug +syn match apacheOption "perl-script" syn keyword apacheOption registry script inetd standalone syn match apacheOptionOption "[+-]\?\<\(ExecCGI\|FollowSymLinks\|Includes\|IncludesNoExec\|Indexes\|MultiViews\|SymLinksIfOwnerMatch\)\>" syn keyword apacheOption user group valid-user @@ -191,6 +192,14 @@ syn keyword apacheDeclaration PerlCleanupHandler PerlChildInitHandler PerlChildExitHandler syn keyword apacheDeclaration PerlRestartHandler PerlDispatchHandler syn keyword apacheDeclaration PerlFreshRestart PerlSendHeader +syn include @Perl $VIMRUNTIME/syntax/perl.vim +syn match apacheSection "\|<\/Perl>" contained +syn region apachePerlBlock + \ start="" + \ end="<\/Perl>" + \ contains=@Perl, apacheSection + \ keepend + syn keyword apacheDeclaration php_value php_flag php_admin_value php_admin_flag syn keyword apacheDeclaration AllowCONNECT NoProxy ProxyBlock ProxyDomain ProxyPass ProxyPassReverse ProxyReceiveBufferSize ProxyRemote ProxyRequests ProxyVia if s:av < "002000000" #### # go somewhere you have write access to cd # find out where apache.vim is locate apache.vim # of course, the path on your system to apache.vim may be different. # substitute accordingly cp /usr/share/vim/vim63/syntax/apache.vim . # apply the patch patch < apache.vim.diff # and iff all went well..... sudo cp apache.vim /usr/share/vim/vim63/syntax