blob: 48dc4b249e744191a82a3383c44f969bd0e40e16 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: PLP (Perl in HTML)
3" Maintainer: Juerd <juerd@juerd.nl>
4" Last Change: 2003 Apr 25
5" Cloned From: aspperl.vim
6
7" Add to filetype.vim the following line (without quote sign):
8" au BufNewFile,BufRead *.plp setf plp
9
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020010" quit when a syntax file was already loaded
11if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000012 finish
13endif
14
15if !exists("main_syntax")
16 let main_syntax = 'perlscript'
17endif
18
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020019runtime! syntax/html.vim
20unlet b:current_syntax
21syn include @PLPperl syntax/perl.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +000022
23syn cluster htmlPreproc add=PLPperlblock
24
25syn keyword perlControl PLP_END
26syn keyword perlStatementInclude include Include
27syn keyword perlStatementFiles ReadFile WriteFile Counter
28syn keyword perlStatementScalar Entity AutoURL DecodeURI EncodeURI
29
30syn cluster PLPperlcode contains=perlStatement.*,perlFunction,perlOperator,perlVarPlain,perlVarNotInMatches,perlShellCommand,perlFloat,perlNumber,perlStringUnexpanded,perlString,perlQQ,perlControl,perlConditional,perlRepeat,perlComment,perlPOD,perlHereDoc,perlPackageDecl,perlElseIfError,perlFiledescRead,perlMatch
31
32syn region PLPperlblock keepend matchgroup=Delimiter start=+<:=\=+ end=+:>+ transparent contains=@PLPperlcode
33
34syn region PLPinclude keepend matchgroup=Delimiter start=+<(+ end=+)>+
35
36let b:current_syntax = "plp"
37