Mercurial > hg > RemoteEditor > vim7
comparison runtime/syntax/aspperl.vim @ 0:76efa0be13f1
Initial revision
author | atsuki |
---|---|
date | Sat, 10 Nov 2007 15:07:22 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:76efa0be13f1 |
---|---|
1 " Vim syntax file | |
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 | |
6 | |
7 " For version 5.x: Clear all syntax items | |
8 " For version 6.x: Quit when a syntax file was already loaded | |
9 if version < 600 | |
10 syntax clear | |
11 elseif exists("b:current_syntax") | |
12 finish | |
13 endif | |
14 | |
15 if !exists("main_syntax") | |
16 let main_syntax = 'perlscript' | |
17 endif | |
18 | |
19 if version < 600 | |
20 so <sfile>:p:h/html.vim | |
21 syn include @AspPerlScript <sfile>:p:h/perl.vim | |
22 else | |
23 runtime! syntax/html.vim | |
24 unlet b:current_syntax | |
25 syn include @AspPerlScript syntax/perl.vim | |
26 endif | |
27 | |
28 syn cluster htmlPreproc add=AspPerlScriptInsideHtmlTags | |
29 | |
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 | |
32 | |
33 let b:current_syntax = "aspperl" |