aboutsummaryrefslogtreecommitdiff
path: root/autoload/sonictemplate/lang/perl.vim
blob: c9e5a6d0cf872a6e29c59aad397f93ea83b03307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function! sonictemplate#lang#perl#guess() abort
  if expand('%:t') ==# 'Makefile.PL'
    return {
    \ 'filter': 'make',
    \}
  endif
  if expand('%:t:e') ==# 'pl'
    return {
    \ 'filter': 'script',
    \}
  endif
  if expand('%:t:e') ==# 'pm'
    return {
    \ 'filter': 'package',
    \}
  endif
  return []
endfunction