aboutsummaryrefslogtreecommitdiff
path: root/autoload/sonictemplate/lang
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-05-09 15:41:50 +0900
committermattn <mattn.jp@gmail.com>2013-05-09 15:41:50 +0900
commitb084bf247bd7d000c33954c9b64ae10e97f2d823 (patch)
treea2450b5f3118f41a025ad566b4a146ea49790566 /autoload/sonictemplate/lang
parent382dc59a19557fc13400af424a40de6f4fd7e1d3 (diff)
downloadvim-sonictemplate-b084bf247bd7d000c33954c9b64ae10e97f2d823.tar.gz
vim-sonictemplate-b084bf247bd7d000c33954c9b64ae10e97f2d823.tar.bz2
vim-sonictemplate-b084bf247bd7d000c33954c9b64ae10e97f2d823.zip
Guess template
Diffstat (limited to 'autoload/sonictemplate/lang')
-rw-r--r--autoload/sonictemplate/lang/perl.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/autoload/sonictemplate/lang/perl.vim b/autoload/sonictemplate/lang/perl.vim
index 5c2da99..e4ea09f 100644
--- a/autoload/sonictemplate/lang/perl.vim
+++ b/autoload/sonictemplate/lang/perl.vim
@@ -1,12 +1,12 @@
function! sonictemplate#lang#perl#guess()
if expand('%:t') ==# 'Makefile.PL'
- return 'make'
+ return ['perl', 'make']
endif
if expand('%:t:e') ==# 'pl'
- return 'script'
+ return ['perl', 'script']
endif
if expand('%:t:e') ==# 'pm'
- return 'package'
+ return ['perl', 'package']
endif
- return ''
+ return []
endfunction