aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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