neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

aspperl.vim (811B)


      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 " quit when a syntax file was already loaded
      8 if exists("b:current_syntax")
      9  finish
     10 endif
     11 
     12 if !exists("main_syntax")
     13  let main_syntax = 'perlscript'
     14 endif
     15 
     16 runtime! syntax/html.vim
     17 unlet b:current_syntax
     18 syn include @AspPerlScript syntax/perl.vim
     19 
     20 syn cluster htmlPreproc add=AspPerlScriptInsideHtmlTags
     21 
     22 syn region  AspPerlScriptInsideHtmlTags keepend matchgroup=Delimiter start=+<%=\=+ skip=+".*%>.*"+ end=+%>+ contains=@AspPerlScript
     23 syn region  AspPerlScriptInsideHtmlTags keepend matchgroup=Delimiter start=+<script\s\+language="\=perlscript"\=[^>]*>+ end=+</script>+ contains=@AspPerlScript
     24 
     25 let b:current_syntax = "aspperl"