mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 12:03:53 -05:00
add missing period to fix mako detection (#530)
This commit is contained in:
@@ -566,10 +566,10 @@ endif
|
|||||||
|
|
||||||
if index(g:polyglot_disabled, 'mako') == -1
|
if index(g:polyglot_disabled, 'mako') == -1
|
||||||
au BufNewFile *.*.mako execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype
|
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 BufReadPre *.*.mako execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype
|
||||||
au BufNewFile,BufRead *.mako set ft=mako
|
au BufNewFile,BufRead *.mako set ft=mako
|
||||||
au BufNewFile *.*.mao execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype
|
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 BufReadPre *.*.mao execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype
|
||||||
au BufNewFile,BufRead *.mao set ft=mako
|
au BufNewFile,BufRead *.mao set ft=mako
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -297,7 +297,7 @@ def generate_ftdetect
|
|||||||
outer_filetype = filetype["outer_filetype"]
|
outer_filetype = filetype["outer_filetype"]
|
||||||
if outer_filetype
|
if outer_filetype
|
||||||
output << " au BufNewFile *.*.#{extension} execute \"do BufNewFile filetypedetect \" . expand(\"<afile>:r\") | #{outer_filetype}\n"
|
output << " au BufNewFile *.*.#{extension} execute \"do BufNewFile filetypedetect \" . expand(\"<afile>:r\") | #{outer_filetype}\n"
|
||||||
output << " au BufReadPre *.*#{extension} execute \"do BufRead filetypedetect \" . expand(\"<afile>:r\") | #{outer_filetype}\n"
|
output << " au BufReadPre *.*.#{extension} execute \"do BufRead filetypedetect \" . expand(\"<afile>:r\") | #{outer_filetype}\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
if ambiguous_extensions.include?(extension)
|
if ambiguous_extensions.include?(extension)
|
||||||
|
|||||||
Reference in New Issue
Block a user