diff options
Diffstat (limited to '')
-rwxr-xr-x | scripts/test | 2 | ||||
-rw-r--r-- | scripts/test_extensions.vim | 2 | ||||
-rw-r--r-- | scripts/test_filetypes.vim | 28 |
3 files changed, 16 insertions, 16 deletions
diff --git a/scripts/test b/scripts/test index e5418fa4..9e023bb9 100755 --- a/scripts/test +++ b/scripts/test @@ -6,7 +6,7 @@ vim --clean -N -u <(echo " let &rtp='$PWD,'.&rtp let g:polyglot_test = 1 source scripts/test_extensions.vim - \"source scripts/test_filetypes.vim + source scripts/test_filetypes.vim qa! ") diff --git a/scripts/test_extensions.vim b/scripts/test_extensions.vim index b0dad298..f2aaf66c 100644 --- a/scripts/test_extensions.vim +++ b/scripts/test_extensions.vim @@ -6,7 +6,7 @@ function! TestExtension(filetype, filename, content) 1delete _ filetype detect exec "if &filetype != '" . a:filetype . "' \nthrow &filetype\nendif" - exec ":q!" + exec ":bw!" catch echo g:message echo "Filename '" . a:filename . "' does not resolve to extension '" . a:filetype . "'" diff --git a/scripts/test_filetypes.vim b/scripts/test_filetypes.vim index 4d7cc0d8..a84b39e3 100644 --- a/scripts/test_filetypes.vim +++ b/scripts/test_filetypes.vim @@ -11,6 +11,7 @@ function! TestFiletype(filetype) endfunction call TestFiletype('8th') +call TestFiletype('haproxy') call TestFiletype('a2ps') call TestFiletype('a65') call TestFiletype('aap') @@ -26,16 +27,20 @@ call TestFiletype('aidl') call TestFiletype('alsaconf') call TestFiletype('aml') call TestFiletype('ampl') +call TestFiletype('xml') call TestFiletype('ant') call TestFiletype('apache') call TestFiletype('apiblueprint') call TestFiletype('applescript') call TestFiletype('aptconf') call TestFiletype('arch') +call TestFiletype('cpp') +call TestFiletype('c') call TestFiletype('arduino') call TestFiletype('art') call TestFiletype('asciidoc') call TestFiletype('autohotkey') +call TestFiletype('elf') call TestFiletype('automake') call TestFiletype('asn') call TestFiletype('aspvbs') @@ -44,9 +49,6 @@ call TestFiletype('atlas') call TestFiletype('autoit') call TestFiletype('ave') call TestFiletype('awk') -call TestFiletype('reason') -call TestFiletype('cpp') -call TestFiletype('c') call TestFiletype('caddyfile') call TestFiletype('carp') call TestFiletype('clojure') @@ -61,7 +63,6 @@ call TestFiletype('cucumber') call TestFiletype('cuesheet') call TestFiletype('dart') call TestFiletype('dhall') -call TestFiletype('grub') call TestFiletype('d') call TestFiletype('dcov') call TestFiletype('dd') @@ -69,7 +70,6 @@ call TestFiletype('ddoc') call TestFiletype('dsdl') call TestFiletype('Dockerfile') call TestFiletype('yaml.docker-compose') -call TestFiletype('elf') call TestFiletype('elixir') call TestFiletype('eelixir') call TestFiletype('elm') @@ -81,23 +81,26 @@ call TestFiletype('ferm') call TestFiletype('fish') call TestFiletype('fbs') call TestFiletype('forth') +call TestFiletype('glsl') call TestFiletype('fsharp') call TestFiletype('gdscript3') call TestFiletype('gitconfig') call TestFiletype('gitrebase') call TestFiletype('gitsendemail') call TestFiletype('gitcommit') -call TestFiletype('glsl') call TestFiletype('gmpl') call TestFiletype('gnuplot') call TestFiletype('go') call TestFiletype('gomod') call TestFiletype('gohtmltmpl') +call TestFiletype('javascript') +call TestFiletype('flow') +call TestFiletype('javascriptreact') call TestFiletype('graphql') call TestFiletype('groovy') +call TestFiletype('grub') call TestFiletype('haml') call TestFiletype('mustache') -call TestFiletype('haproxy') call TestFiletype('haskell') call TestFiletype('haxe') call TestFiletype('hcl') @@ -109,9 +112,6 @@ call TestFiletype('idris') call TestFiletype('idris2') call TestFiletype('lidris2') call TestFiletype('ion') -call TestFiletype('javascriptreact') -call TestFiletype('javascript') -call TestFiletype('flow') call TestFiletype('Jenkinsfile') call TestFiletype('jinja.html') call TestFiletype('jq') @@ -131,7 +131,6 @@ call TestFiletype('log') call TestFiletype('lua') call TestFiletype('m4') call TestFiletype('mako') -call TestFiletype('octave') call TestFiletype('mma') call TestFiletype('markdown') call TestFiletype('markdown.mdx') @@ -152,12 +151,13 @@ call TestFiletype('ocamlbuild_tags') call TestFiletype('ocpbuild') call TestFiletype('ocpbuildroot') call TestFiletype('sexplib') +call TestFiletype('octave') call TestFiletype('opencl') call TestFiletype('perl') call TestFiletype('sql') call TestFiletype('cql') -call TestFiletype('blade') call TestFiletype('php') +call TestFiletype('blade') call TestFiletype('plantuml') call TestFiletype('pony') call TestFiletype('ps1') @@ -178,6 +178,7 @@ call TestFiletype('ragel') call TestFiletype('raku') call TestFiletype('raml') call TestFiletype('razor') +call TestFiletype('reason') call TestFiletype('rst') call TestFiletype('ruby') call TestFiletype('eruby') @@ -218,10 +219,9 @@ call TestFiletype('velocity') call TestFiletype('vmasm') call TestFiletype('vue') call TestFiletype('xdc') -call TestFiletype('xml') call TestFiletype('xsl') -call TestFiletype('yaml.ansible') call TestFiletype('yaml') +call TestFiletype('yaml.ansible') call TestFiletype('helm') call TestFiletype('help') call TestFiletype('zephir') |