diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-27 19:47:32 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-27 19:47:32 +0200 |
commit | f95026252c5a31242903a98c741887696dfbb11f (patch) | |
tree | cd697cdc96c20a44f03ff3aacc67f78fdcc6ece5 /ftdetect | |
parent | 4f3df59be709bf0d5c5c67dc804fde49abdc2700 (diff) | |
download | vim-polyglot-f95026252c5a31242903a98c741887696dfbb11f.tar.gz vim-polyglot-f95026252c5a31242903a98c741887696dfbb11f.zip |
Update everything, closes #435
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 0060dfd6..bec614ae 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -276,6 +276,15 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1 augroup filetypedetect " dart, from dart.vim in dart-lang/dart-vim-plugin autocmd BufRead,BufNewFile *.dart set filetype=dart + +function! s:DetectShebang() + if did_filetype() | return | endif + if getline(1) == '#!/usr/bin/env dart' + setlocal filetype=dart + endif +endfunction + +autocmd BufRead * call s:DetectShebang() augroup end endif @@ -1047,6 +1056,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 augroup filetypedetect " puppet, from puppet.vim in rodjek/vim-puppet au! BufRead,BufNewFile *.pp setfiletype puppet +au! BufRead,BufNewFile *.epp setfiletype embeddedpuppet au! BufRead,BufNewFile Puppetfile setfiletype ruby augroup end endif |