From 013d161878767916086b4a59a70e45cbeaf8731b Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 27 Feb 2009 23:15:19 +0100 Subject: [PATCH] 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: --- plp.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=+)>+ -- 2.30.0