diff options
author | mattn <mattn.jp@gmail.com> | 2013-05-08 21:49:06 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2013-05-08 21:49:06 +0900 |
commit | 73ae34eb58b5823c3daa97fe18f29cf6d62d641e (patch) | |
tree | d2fec83948cd20d495d9a75873fa22ef047acca7 /autoload/sonictemplate | |
parent | 00125ec7eaeb2251babf8136f3263285646a1859 (diff) | |
download | vim-sonictemplate-73ae34eb58b5823c3daa97fe18f29cf6d62d641e.tar.gz vim-sonictemplate-73ae34eb58b5823c3daa97fe18f29cf6d62d641e.tar.bz2 vim-sonictemplate-73ae34eb58b5823c3daa97fe18f29cf6d62d641e.zip |
perl filter
Diffstat (limited to 'autoload/sonictemplate')
-rw-r--r-- | autoload/sonictemplate/lang/perl.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/autoload/sonictemplate/lang/perl.vim b/autoload/sonictemplate/lang/perl.vim index be5628f..5c2da99 100644 --- a/autoload/sonictemplate/lang/perl.vim +++ b/autoload/sonictemplate/lang/perl.vim @@ -1,6 +1,12 @@ function! sonictemplate#lang#perl#guess() - if expand('%:t') == 'Makefile.PL' + if expand('%:t') ==# 'Makefile.PL' return 'make' endif + if expand('%:t:e') ==# 'pl' + return 'script' + endif + if expand('%:t:e') ==# 'pm' + return 'package' + endif return '' endfunction |