From 4bec20ec1a7cde0c29d9550d244f428484fa56ab Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 7 Oct 2020 21:51:30 +0200 Subject: Fix test and loading of filetypes, closes #577 --- tests/filetypes.vim | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/filetypes.vim b/tests/filetypes.vim index d77ade81..5676807d 100644 --- a/tests/filetypes.vim +++ b/tests/filetypes.vim @@ -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 -- cgit v1.2.3