summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-07 21:51:30 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-07 21:51:30 +0200
commit4bec20ec1a7cde0c29d9550d244f428484fa56ab (patch)
tree9d0e03e25083e1e9f313150ccdf435a15bcab789 /tests
parent9f4e2b683453c9521de8164169327a112d71f6c1 (diff)
downloadvim-polyglot-4bec20ec1a7cde0c29d9550d244f428484fa56ab.tar.gz
vim-polyglot-4bec20ec1a7cde0c29d9550d244f428484fa56ab.zip
Fix test and loading of filetypes, closes #577v4.13.2
Diffstat (limited to 'tests')
-rw-r--r--tests/filetypes.vim13
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