mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 13:33:49 -05:00
Fix test and loading of filetypes, closes #577
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
function! TestFiletype(filetype)
|
||||
call Log('Loading ' . a:filetype . ' filetype...')
|
||||
|
||||
enew
|
||||
exec 'set ft=' . a:filetype
|
||||
try
|
||||
enew
|
||||
exec 'set ft=' . a:filetype
|
||||
catch
|
||||
echo 'Failed to load ' . a:filetype . ' filetype...'
|
||||
echo v:exception
|
||||
endtry
|
||||
endfunction
|
||||
|
||||
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
|
||||
|
||||
call TestFiletype('8th')
|
||||
call TestFiletype('cfg')
|
||||
call TestFiletype('master')
|
||||
@@ -625,3 +632,5 @@ call TestFiletype('logcheck')
|
||||
call TestFiletype('svn')
|
||||
call TestFiletype('text')
|
||||
call TestFiletype('pullrequest')
|
||||
|
||||
" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE
|
||||
|
||||
Reference in New Issue
Block a user