diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-07 21:51:30 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-07 21:51:30 +0200 |
commit | 4bec20ec1a7cde0c29d9550d244f428484fa56ab (patch) | |
tree | 9d0e03e25083e1e9f313150ccdf435a15bcab789 /tests/filetypes.vim | |
parent | 9f4e2b683453c9521de8164169327a112d71f6c1 (diff) | |
download | vim-polyglot-4.13.2.tar.gz vim-polyglot-4.13.2.zip |
Fix test and loading of filetypes, closes #577v4.13.2
Diffstat (limited to 'tests/filetypes.vim')
-rw-r--r-- | tests/filetypes.vim | 13 |
1 files changed, 11 insertions, 2 deletions
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 |