diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-11-12 21:56:06 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-11-12 21:56:06 +0100 |
commit | 0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2 (patch) | |
tree | 5b5e45e53e9ecafa6c182c8ce7e0266e34388e4d /ftdetect | |
parent | 4e95df7c7e12cb76e781f2dacf1c07f8984cce58 (diff) | |
download | vim-polyglot-0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2.tar.gz vim-polyglot-0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2.zip |
Update
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) |