summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-08-25 23:09:24 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-08-25 23:09:24 +0200
commitf0d6ecff07c88e7a406bc082d1ce98a5282b451c (patch)
tree09e4356d9a253020c796afe316d378f5d10a01ea
parent15e5df246e0f04863b3c720fd7bca835c82ecdcd (diff)
downloadvim-polyglot-f0d6ecff07c88e7a406bc082d1ce98a5282b451c.tar.gz
vim-polyglot-f0d6ecff07c88e7a406bc082d1ce98a5282b451c.zip
Build
-rw-r--r--ftdetect/polyglot.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index edb884a6..76ed585c 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -562,8 +562,12 @@ if index(g:polyglot_disabled, 'lua') == -1
endif
if index(g:polyglot_disabled, 'mako') == -1
- au BufNewFile *.*.mako execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype au BufReadPre *.*mako execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype au BufNewFile,BufRead *.mako set ft=mako
- au BufNewFile *.*.mao execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype au BufReadPre *.*mao execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype au BufNewFile,BufRead *.mao set ft=mako
+ au BufNewFile *.*.mako execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype
+ au BufReadPre *.*mako execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype
+ au BufNewFile,BufRead *.mako set ft=mako
+ au BufNewFile *.*.mao execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype
+ au BufReadPre *.*mao execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype
+ au BufNewFile,BufRead *.mao set ft=mako
endif
if index(g:polyglot_disabled, 'mathematica') == -1