aboutsummaryrefslogtreecommitdiff
path: root/autoload/sonictemplate
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-05-08 21:49:06 +0900
committermattn <mattn.jp@gmail.com>2013-05-08 21:49:06 +0900
commit73ae34eb58b5823c3daa97fe18f29cf6d62d641e (patch)
treed2fec83948cd20d495d9a75873fa22ef047acca7 /autoload/sonictemplate
parent00125ec7eaeb2251babf8136f3263285646a1859 (diff)
downloadvim-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.vim8
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