2 " Language: PLP (Perl in HTML)
3 " Maintainer: Shiar <perl@shiar.org>
4 " Last Change: 2011 June 17
5 " Cloned From: aspperl.vim
6 " Author: Juerd <juerd@juerd.nl>
8 " Add to filetype.vim the following line (without quote sign):
9 " au BufNewFile,BufRead *.plp setf plp
11 " Quit when a syntax file was already loaded
12 if exists("b:current_syntax")
16 if !exists("main_syntax")
17 let main_syntax = 'perlscript'
20 runtime! syntax/html.vim
21 unlet b:current_syntax
22 syn include @PLPperl syntax/perl.vim
24 syn cluster htmlPreproc add=PLPperlblock
26 syn keyword perlControl PLP_END
27 syn keyword perlStatementInclude include Include
28 syn keyword perlStatementFiles ReadFile WriteFile Counter
29 syn keyword perlStatementScalar EscapeHTML Entity AutoURL DecodeURI EncodeURI
31 syn cluster PLPperlcode contains=perlStatement.*,perlFunction,perlOperator,perlVarPlain,perlVarNotInMatches,perlShellCommand,perlFloat,perlNumber,perlStringUnexpanded,perlString,perlQQ,perlControl,perlConditional,perlRepeat,perlComment,perlPOD,perlHereDoc,perlPackageDecl,perlFiledescRead,perlMatch
33 syn region PLPperlblock keepend matchgroup=Delimiter start=+<:=\=+ end=+:>+ contains=@PLPperlcode
35 syn region PLPinclude keepend matchgroup=Delimiter start=+<(+ end=+)>+
37 let b:current_syntax = "plp"