diff options
Diffstat (limited to 'autoload/sonictemplate/lang/perl.vim')
-rw-r--r-- | autoload/sonictemplate/lang/perl.vim | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/autoload/sonictemplate/lang/perl.vim b/autoload/sonictemplate/lang/perl.vim index e4ea09f..add3d12 100644 --- a/autoload/sonictemplate/lang/perl.vim +++ b/autoload/sonictemplate/lang/perl.vim @@ -1,12 +1,18 @@ function! sonictemplate#lang#perl#guess() if expand('%:t') ==# 'Makefile.PL' - return ['perl', 'make'] + return { + \ 'filter': 'make', + \} endif if expand('%:t:e') ==# 'pl' - return ['perl', 'script'] + return { + \ 'filter': 'script', + \} endif if expand('%:t:e') ==# 'pm' - return ['perl', 'package'] + return { + \ 'filter': 'package', + \} endif return [] endfunction |