2 " Language: Active State's PerlScript (ASP)
3 " Maintainer: Aaron Hope <edh@brioforge.com>
4 " URL: http://nim.dhs.org/~edh/aspperl.vim
5 " Last Change: 2001 May 09
7 " For version 5.x: Clear all syntax items
8 " For version 6.x: Quit when a syntax file was already loaded
11 elseif exists("b:current_syntax")
15 if !exists("main_syntax")
16 let main_syntax = 'perlscript'
20 so <sfile>:p:h/html.vim
21 syn include @AspPerlScript <sfile>:p:h/perl.vim
23 runtime! syntax/html.vim
24 unlet b:current_syntax
25 syn include @AspPerlScript syntax/perl.vim
28 syn cluster htmlPreproc add=AspPerlScriptInsideHtmlTags
30 syn region AspPerlScriptInsideHtmlTags keepend matchgroup=Delimiter start=+<%=\=+ skip=+".*%>.*"+ end=+%>+ contains=@AspPerlScript
31 syn region AspPerlScriptInsideHtmlTags keepend matchgroup=Delimiter start=+<script\s\+language="\=perlscript"\=[^>]*>+ end=+</script>+ contains=@AspPerlScript
33 let b:current_syntax = "aspperl"