diff options
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 3dc8a3ec..7306f02b 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -634,6 +634,13 @@ endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 augroup filetypedetect + " javascript, from flow.vim in pangloss/vim-javascript:_JAVASCRIPT +autocmd BufNewFile,BufRead *.flow setfiletype flow + augroup end +endif + +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 + augroup filetypedetect " javascript, from javascript.vim in pangloss/vim-javascript:_JAVASCRIPT fun! s:SelectJavascript() if getline(1) =~# '^#!.*/bin/\%(env\s\+\)\?node\>' @@ -1109,7 +1116,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'racket') == -1 let g:racket_hash_lang_regexp = '^#lang\s\+\([^][)(}{[:space:]]\+\)' " Tries to detect filetype from #lang line; defaults to ft=racket. -function RacketDetectHashLang() +function! RacketDetectHashLang() let old_ft = &filetype let matches = matchlist(getline(1), g:racket_hash_lang_regexp) |