" --- cut ----------------------
" my filetype file
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
au! BufRead,BufNewFile *.PM setfiletype PM
augroup END
" --- cut ----------------------
####
" ---- cut ---------------------
" Vim syntax file
" Language: PM
" Maintainer: noone
" Last Change: 2003 Jun 26
" Load the HTML syntax.
runtime! syntax/html.vim
" UPDATE - (Thanks to zakb)
unlet b:current_syntax
" add Perl extensions
:syntax include @Perl syntax/perl.vim
:syntax region htmlPerl start="< code >" end="< /code >" contains=@Perl keepend
" remove spaces around code tags !
let b:current_syntax = "html"
:syntax region PMlink start="\[" end ="\]"
if version >= 508 || !exists("did_PM_syn_init")
if version < 508
let did_PM_syn_init = 1
command -nargs=+ HiLink hi link
else
command -nargs=+ HiLink hi def link
endif
HiLink PMlink Underlined
delcommand HiLink
endif
let b:current_syntax = "PM"
" vim: ts=8
" --- cut ----------------------
##
##
au! BufRead,BufNewFile *.PM setfiletype PM