From 82336eaa89edd5ee24f021a5c5bf3939770333c3 Mon Sep 17 00:00:00 2001 From: Milly Date: Sat, 9 Oct 2021 00:44:45 +0900 Subject: [PATCH 1/2] Fixed error output * `:throw` can not throws "Vim" exception. --- tests/filetypes.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/filetypes.vim b/tests/filetypes.vim index 0d72c7274..92b5b3461 100644 --- a/tests/filetypes.vim +++ b/tests/filetypes.vim @@ -9,7 +9,8 @@ func! TestFiletype(filetype) exec ":bw!" catch echo 'Failed to load ' . a:filetype . ' filetype...' - throw v:exception + echo v:throwpoint + echo v:exception cq! endtry endfunc From 3e49b1aefef428162a5c915c580ebfbffc8fbc97 Mon Sep 17 00:00:00 2001 From: Milly Date: Sat, 9 Oct 2021 03:07:08 +0900 Subject: [PATCH 2/2] Combine duplicate dict keys --- tests/native.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/native.vim b/tests/native.vim index 46d5f6d5d..9f4ce3273 100644 --- a/tests/native.vim +++ b/tests/native.vim @@ -287,7 +287,6 @@ let s:filename_checks = { \ 'mailcap': ['.mailcap', 'mailcap'], \ 'make': ['file.mk', 'file.mak', 'file.dsp', 'makefile', 'Makefile', 'makefile-file', 'Makefile-file', 'some-makefile', 'some-Makefile'], \ 'mallard': ['file.page'], - \ 'nroff': ['file.man'], \ 'manconf': ['/etc/man.conf', 'man.config', 'any/etc/man.conf'], \ 'map': ['file.map'], \ 'maple': ['file.mv', 'file.mpl', 'file.mws'], @@ -330,7 +329,7 @@ let s:filename_checks = { \ 'netrc': ['.netrc'], \ 'ninja': ['file.ninja'], \ 'nqc': ['file.nqc'], - \ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'], + \ 'nroff': ['file.man', 'file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'], \ 'nsis': ['file.nsi', 'file.nsh'], \ 'obj': ['file.obj'], \ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit'],