X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/7509565253b19493771cfc2e13ab166f1a8cc5f8..4fbabf3a9fbdfecf548528895a95f194ffc520e2:/plp.vim diff --git a/plp.vim b/plp.vim index 31b55c1..034cc14 100644 --- a/plp.vim +++ b/plp.vim @@ -1,8 +1,9 @@ " Vim syntax file " Language: PLP (Perl in HTML) -" Maintainer: Juerd -" Last Change: 2002 May 19 +" Maintainer: Shiar +" Last Change: 2009 October 19 " Cloned From: aspperl.vim +" Author: Juerd " Add to filetype.vim the following line (without quote sign): " au BufNewFile,BufRead *.plp setf plp @@ -21,19 +22,25 @@ endif if version < 600 so :p:h/html.vim - syn include @PLPPerlScript :p:h/perl.vim + syn include @PLPperl :p:h/perl.vim else runtime! syntax/html.vim unlet b:current_syntax - syn include @PLPPerlScript syntax/perl.vim + syn include @PLPperl syntax/perl.vim endif -syn cluster htmlPreproc add=PLPPerlScriptInsideHtmlTags +syn cluster htmlPreproc add=PLPperlblock -syn region PLPPerlScriptInsideHtmlTags keepend matchgroup=Delimiter start=+<:=\=+ end=+:>+ contains=@PLPPerlScript +syn keyword perlControl PLP_END +syn keyword perlStatementInclude include Include +syn keyword perlStatementFiles ReadFile WriteFile Counter +syn keyword perlStatementScalar EscapeHTML Entity AutoURL DecodeURI EncodeURI -syn cluster htmlPreproc add=PLPIncludeTag +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=+:>+ contains=@PLPperlcode -syn region PLPIncludeTag keepend matchgroup=Delimiter start=+<(+ end=+)>+ contains=@PLPIncludeFilename +syn region PLPinclude keepend matchgroup=Delimiter start=+<(+ end=+)>+ let b:current_syntax = "plp" +