diff options
author | mattn <mattn.jp@gmail.com> | 2013-05-09 15:41:50 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2013-05-09 15:41:50 +0900 |
commit | b084bf247bd7d000c33954c9b64ae10e97f2d823 (patch) | |
tree | a2450b5f3118f41a025ad566b4a146ea49790566 /autoload/sonictemplate/lang | |
parent | 382dc59a19557fc13400af424a40de6f4fd7e1d3 (diff) | |
download | vim-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.vim | 8 |
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 |