From 0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 12 Nov 2019 21:56:06 +0100 Subject: Update --- ftdetect/polyglot.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 3dc8a3ec..7306f02b 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -632,6 +632,13 @@ autocmd BufNewFile,BufRead *Spec.js,*_spec.js set filetype=jasmine.javascript sy augroup end 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 @@ -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) -- cgit v1.2.3