vim: reset style at plp block start
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 27 Feb 2009 22:15:19 +0000 (23:15 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 21 Oct 2009 21:33:24 +0000 (23:33 +0200)
PLPperlblock should not be made 'transparent', because this incorrectly
preserves the current HTML highlight for default Perl code.  Mixing Perl and
HTML styling can lead to very strange and unwanted effects, like partially
marking the following code as a comment:

<!-- <: print not_a_comment(); :> -->

plp.vim

diff --git a/plp.vim b/plp.vim
index 9605a677a46bb1f693ea26bb416e94a187b8c44b..034cc1491000fcc715528220f6919cc2273ca586 100644 (file)
--- a/plp.vim
+++ b/plp.vim
@@ -38,7 +38,7 @@ syn keyword perlStatementScalar EscapeHTML Entity AutoURL DecodeURI EncodeURI
 
 syn cluster PLPperlcode contains=perlStatement.*,perlFunction,perlOperator,perlVarPlain,perlVarNotInMatches,perlShellCommand,perlFloat,perlNumber,perlStringUnexpanded,perlString,perlQQ,perlControl,perlConditional,perlRepeat,perlComment,perlPOD,perlHereDoc,perlPackageDecl,perlElseIfError,perlFiledescRead,perlMatch
   
-syn region  PLPperlblock keepend matchgroup=Delimiter start=+<:=\=+ end=+:>+ transparent contains=@PLPperlcode
+syn region  PLPperlblock keepend matchgroup=Delimiter start=+<:=\=+ end=+:>+ contains=@PLPperlcode
 
 syn region  PLPinclude keepend matchgroup=Delimiter start=+<(+ end=+)>+