summaryrefslogtreecommitdiffstats
path: root/tests/extensions.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-23 19:37:50 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-23 19:37:58 +0200
commit33f0964d53270e627e9293a3a7a2badb44353a0b (patch)
tree7372ececa3d57e4e47da3c21831a35755e637832 /tests/extensions.vim
parent92cb76e33a9ba4d8ac72018a26c2e99ba50d971c (diff)
downloadvim-polyglot-33f0964d53270e627e9293a3a7a2badb44353a0b.tar.gz
vim-polyglot-33f0964d53270e627e9293a3a7a2badb44353a0b.zip
Update test script to ruby
Diffstat (limited to 'tests/extensions.vim')
-rw-r--r--tests/extensions.vim4
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"