diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-23 19:37:50 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-23 19:37:58 +0200 |
commit | 33f0964d53270e627e9293a3a7a2badb44353a0b (patch) | |
tree | 7372ececa3d57e4e47da3c21831a35755e637832 /tests/extensions.vim | |
parent | 92cb76e33a9ba4d8ac72018a26c2e99ba50d971c (diff) | |
download | vim-polyglot-33f0964d53270e627e9293a3a7a2badb44353a0b.tar.gz vim-polyglot-33f0964d53270e627e9293a3a7a2badb44353a0b.zip |
Update test script to ruby
Diffstat (limited to 'tests/extensions.vim')
-rw-r--r-- | tests/extensions.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/extensions.vim b/tests/extensions.vim index 467ac86a..98a93796 100644 --- a/tests/extensions.vim +++ b/tests/extensions.vim @@ -1,8 +1,10 @@ function! TestExtension(filetype, filename, content) + call Log('Detecting ' . a:filetype . ' filetype (' . a:filename . ')...') + try let g:message = "" exec "noautocmd n " . a:filename - put =a:content + silent put =a:content 1delete _ filetype detect exec "if &filetype != '" . a:filetype . "' \nthrow &filetype\nendif" |