From 23913e0598d23ec5948b71ea78c549b39cecf764 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 8 Mar 2015 21:32:50 -0700 Subject: Update --- ftdetect/polyglot.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 388976e6..000b1c9b 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -142,7 +142,7 @@ function! s:DetectPerl6() endwhile endfunction autocmd BufReadPost *.pl,*.pm,*.t call s:DetectPerl6() -autocmd BufNew,BufRead *.nqp setf perl6 +autocmd BufNew,BufNewFile,BufRead *.nqp setf perl6 autocmd BufNewFile,BufRead *.proto setfiletype proto au BufNewFile,BufRead *.ps1 set ft=ps1 au BufNewFile,BufRead *.psd1 set ft=ps1 @@ -180,7 +180,7 @@ au BufNewFile,BufRead Podfile,*.podspec call s:setf('ruby') au BufRead,BufNewFile *.rs set filetype=rust au BufRead,BufNewFile *.sbt set filetype=sbt.scala fun! s:DetectScala() - if getline(1) == '#!/usr/bin/env scala' + if getline(1) =~# '^#!\(/usr\)\?/bin/env\s\+scalas\?' set filetype=scala endif endfun -- cgit v1.2.3