diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2015-03-08 21:32:50 -0700 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-03-08 21:32:50 -0700 |
commit | 23913e0598d23ec5948b71ea78c549b39cecf764 (patch) | |
tree | f21bd3dd20a7fe0e46bed7dd11329a204fe4cc3f /ftdetect | |
parent | 1c2123117537fb4bccf87fcf39abc05eaf950ec2 (diff) | |
download | vim-polyglot-1.12.1.tar.gz vim-polyglot-1.12.1.zip |
Updatev1.12.1
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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 |