From: Mischa POSLAWSKY Date: Fri, 27 Feb 2009 22:15:19 +0000 (+0100) Subject: vim: reset style at plp block start X-Git-Tag: 3.23~1 X-Git-Url: http://git.shiar.net/perl/plp/.git/commitdiff_plain/013d161878767916086b4a59a70e45cbeaf8731b?hp=51d3d67a18705467fa51bb66805456a2502505f1 vim: reset style at plp block start 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: --- diff --git a/plp.vim b/plp.vim index 9605a67..034cc14 100644 --- 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=+)>+