annotate src/testdir/test_filetype.vim @ 17555:c2eb5118ba89 v8.1.1775

patch 8.1.1775: error message may be empty in filetype test commit https://github.com/vim/vim/commit/eee9f65b2a213e9031f172d9d3b22adad6cb985d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 29 21:14:42 2019 +0200 patch 8.1.1775: error message may be empty in filetype test Problem: Error message may be empty in filetype test. Solution: Use v:exception instead. (Daniel Hahler, closs https://github.com/vim/vim/issues/4744)
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Jul 2019 21:15:08 +0200
parents 62a6d99082f7
children 180fb9981255
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11459
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Test :setfiletype
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 func Test_detection()
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 filetype on
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 augroup filetypedetect
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 au BufNewFile,BufRead * call assert_equal(1, did_filetype())
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 augroup END
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 new something.vim
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 call assert_equal('vim', &filetype)
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 bwipe!
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 filetype off
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 endfunc
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 func Test_conf_type()
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 filetype on
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17 call writefile(['# some comment', 'must be conf'], 'Xfile')
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 augroup filetypedetect
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 au BufNewFile,BufRead * call assert_equal(0, did_filetype())
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 augroup END
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 split Xfile
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 call assert_equal('conf', &filetype)
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24 bwipe!
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 call delete('Xfile')
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 filetype off
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27 endfunc
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
29 func Test_other_type()
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
30 filetype on
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
31 augroup filetypedetect
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
32 au BufNewFile,BufRead * call assert_equal(0, did_filetype())
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
33 au BufNewFile,BufRead Xfile setf testfile
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
34 au BufNewFile,BufRead * call assert_equal(1, did_filetype())
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
35 augroup END
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
36 call writefile(['# some comment', 'must be conf'], 'Xfile')
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
37 split Xfile
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
38 call assert_equal('testfile', &filetype)
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
39
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
40 bwipe!
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
41 call delete('Xfile')
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
42 filetype off
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
43 endfunc
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
44
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
45 " Filetypes detected just from matching the file name.
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
46 let s:filename_checks = {
17528
62a6d99082f7 patch 8.1.1762: some filetype rules are in the wrong place
Bram Moolenaar <Bram@vim.org>
parents: 17526
diff changeset
47 \ '8th': ['file.8th'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
48 \ 'a2ps': ['/etc/a2ps.cfg', '/etc/a2ps/file.cfg', 'a2psrc', '.a2psrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
49 \ 'a65': ['file.a65'],
17528
62a6d99082f7 patch 8.1.1762: some filetype rules are in the wrong place
Bram Moolenaar <Bram@vim.org>
parents: 17526
diff changeset
50 \ 'aap': ['file.aap'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
51 \ 'abap': ['file.abap'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
52 \ 'abc': ['file.abc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
53 \ 'abel': ['file.abl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
54 \ 'acedb': ['file.wrm'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
55 \ 'ada': ['file.adb', 'file.ads', 'file.ada', 'file.gpr'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
56 \ 'ahdl': ['file.tdf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
57 \ 'alsaconf': ['.asoundrc', '/usr/share/alsa/alsa.conf', '/etc/asound.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
58 \ 'aml': ['file.aml'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
59 \ 'ampl': ['file.run'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
60 \ 'ant': ['build.xml'],
17528
62a6d99082f7 patch 8.1.1762: some filetype rules are in the wrong place
Bram Moolenaar <Bram@vim.org>
parents: 17526
diff changeset
61 \ 'apache': ['.htaccess', '/etc/httpd/file.conf', '/etc/apache2/sites-2/file.com', '/etc/apache2/some.config', '/etc/apache2/conf.file/conf', '/etc/apache2/mods-some/file', '/etc/apache2/sites-some/file', '/etc/httpd/conf.d/file.config'],
62a6d99082f7 patch 8.1.1762: some filetype rules are in the wrong place
Bram Moolenaar <Bram@vim.org>
parents: 17526
diff changeset
62 \ 'apachestyle': ['/etc/proftpd/file.config,/etc/proftpd/conf.file/file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
63 \ 'applescript': ['file.scpt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
64 \ 'aptconf': ['apt.conf', '/.aptitude/config'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
65 \ 'arch': ['.arch-inventory'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
66 \ 'arduino': ['file.ino', 'file.pde'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
67 \ 'art': ['file.art'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
68 \ 'asciidoc': ['file.asciidoc', 'file.adoc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
69 \ 'asn': ['file.asn', 'file.asn1'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
70 \ 'atlas': ['file.atl', 'file.as'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
71 \ 'autohotkey': ['file.ahk'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
72 \ 'autoit': ['file.au3'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
73 \ 'automake': ['GNUmakefile.am'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
74 \ 'ave': ['file.ave'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
75 \ 'awk': ['file.awk'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
76 \ 'b': ['file.mch', 'file.ref', 'file.imp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
77 \ 'bc': ['file.bc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
78 \ 'bdf': ['file.bdf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
79 \ 'bib': ['file.bib'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
80 \ 'bindzone': ['named.root'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
81 \ 'blank': ['file.bl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
82 \ 'bst': ['file.bst'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
83 \ 'bzr': ['bzr_log.any'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
84 \ 'c': ['enlightenment/file.cfg', 'file.qc', 'file.c'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
85 \ 'cabal': ['file.cabal'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
86 \ 'calendar': ['calendar'],
17528
62a6d99082f7 patch 8.1.1762: some filetype rules are in the wrong place
Bram Moolenaar <Bram@vim.org>
parents: 17526
diff changeset
87 \ 'catalog': ['catalog', 'sgml.catalogfile'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
88 \ 'cdl': ['file.cdl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
89 \ 'cdrdaoconf': ['/etc/cdrdao.conf', '/etc/defaults/cdrdao', '/etc/default/cdrdao', '.cdrdao'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
90 \ 'cdrtoc': ['file.toc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
91 \ 'cf': ['file.cfm', 'file.cfi', 'file.cfc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
92 \ 'cfengine': ['cfengine.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
93 \ 'cfg': ['file.cfg', 'file.hgrc', 'filehgrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
94 \ 'ch': ['file.chf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
95 \ 'chaiscript': ['file.chai'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
96 \ 'chaskell': ['file.chs'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
97 \ 'chill': ['file..ch'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
98 \ 'chordpro': ['file.chopro', 'file.crd', 'file.cho', 'file.crdpro', 'file.chordpro'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
99 \ 'cl': ['file.eni'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
100 \ 'clean': ['file.dcl', 'file.icl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
101 \ 'clojure': ['file.clj', 'file.cljs', 'file.cljx', 'file.cljc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
102 \ 'cmake': ['CMakeLists.txt', 'file.cmake', 'file.cmake.in'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
103 \ 'cmusrc': ['any/.cmus/autosave', 'any/.cmus/rc', 'any/.cmus/command-history', 'any/.cmus/file.theme', 'any/cmus/rc', 'any/cmus/file.theme'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
104 \ 'cobol': ['file.cbl', 'file.cob', 'file.lib'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
105 \ 'coco': ['file.atg'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
106 \ 'conaryrecipe': ['file.recipe'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
107 \ 'conf': ['auto.master'],
16364
db8f57e3e9f5 patch 8.1.1187: cannot recognize Pipfile
Bram Moolenaar <Bram@vim.org>
parents: 16344
diff changeset
108 \ 'config': ['configure.in', 'configure.ac', 'Pipfile'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
109 \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
110 \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
111 \ 'crm': ['file.crm'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
112 \ 'cs': ['file.cs'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
113 \ 'csc': ['file.csc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
114 \ 'csdl': ['file.csdl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
115 \ 'csp': ['file.csp', 'file.fdr'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
116 \ 'css': ['file.css'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
117 \ 'cterm': ['file.con'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
118 \ 'cucumber': ['file.feature'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
119 \ 'cuda': ['file.cu'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
120 \ 'cupl': ['file.pld'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
121 \ 'cuplsim': ['file.si'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
122 \ 'cvs': ['cvs123'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
123 \ 'cvsrc': ['.cvsrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
124 \ 'cynpp': ['file.cyn'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
125 \ 'datascript': ['file.ds'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
126 \ 'dcd': ['file.dcd'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
127 \ 'debcontrol': ['/debian/control'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
128 \ 'debsources': ['/etc/apt/sources.list', '/etc/apt/sources.list.d/file.list'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
129 \ 'def': ['file.def'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
130 \ 'denyhosts': ['denyhosts.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
131 \ 'desc': ['file.desc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
132 \ 'desktop': ['file.desktop', '.directory'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
133 \ 'dictconf': ['dict.conf', '.dictrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
134 \ 'dictdconf': ['dictd.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
135 \ 'diff': ['file.diff', 'file.rej'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
136 \ 'dircolors': ['.dir_colors', '.dircolors', '/etc/DIR_COLORS'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
137 \ 'dnsmasq': ['/etc/dnsmasq.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
138 \ 'dockerfile': ['Dockerfile', 'file.Dockerfile'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
139 \ 'dosbatch': ['file.bat', 'file.sys'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
140 \ 'dosini': ['.editorconfig', '/etc/yum.conf', 'file.ini'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
141 \ 'dot': ['file.dot'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
142 \ 'dracula': ['file.drac', 'file.drc', 'filelvs', 'filelpe'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
143 \ 'dsl': ['file.dsl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
144 \ 'dtd': ['file.dtd'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
145 \ 'dts': ['file.dts', 'file.dtsi'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
146 \ 'dylan': ['file.dylan'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
147 \ 'dylanintr': ['file.intr'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
148 \ 'dylanlid': ['file.lid'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
149 \ 'ecd': ['file.ecd'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
150 \ 'edif': ['file.edf', 'file.edif', 'file.edo'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
151 \ 'elinks': ['/etc/elinks.conf', '/.elinks/elinks.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
152 \ 'elmfilt': ['filter-rules'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
153 \ 'erlang': ['file.erl', 'file.hrl', 'file.yaws'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
154 \ 'eruby': ['file.erb', 'file.rhtml'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
155 \ 'esmtprc': ['anyesmtprc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
156 \ 'esqlc': ['file.ec', 'file.EC'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
157 \ 'esterel': ['file.strl'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
158 \ 'eterm': ['anyEterm/file.cfg'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
159 \ 'exim': ['exim.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
160 \ 'expect': ['file.exp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
161 \ 'exports': ['exports'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
162 \ 'factor': ['file.factor'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
163 \ 'falcon': ['file.fal'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
164 \ 'fan': ['file.fan', 'file.fwt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
165 \ 'fetchmail': ['.fetchmailrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
166 \ 'fgl': ['file.4gl', 'file.4gh', 'file.m4gl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
167 \ 'focexec': ['file.fex', 'file.focexec'],
14946
8ca1dc213836 patch 8.1.0484: some file types are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 13182
diff changeset
168 \ 'forth': ['file.fs', 'file.ft', 'file.fth'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
169 \ 'fortran': ['file.f', 'file.for', 'file.fortran', 'file.fpp', 'file.ftn', 'file.f77', 'file.f90', 'file.f95', 'file.f03', 'file.f08'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
170 \ 'framescript': ['file.fsl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
171 \ 'freebasic': ['file.fb', 'file.bi'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
172 \ 'fstab': ['fstab', 'mtab'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
173 \ 'gdb': ['.gdbinit'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
174 \ 'gdmo': ['file.mo', 'file.gdmo'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
175 \ 'gedcom': ['file.ged', 'lltxxxxx.txt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
176 \ 'gitcommit': ['COMMIT_EDITMSG', 'MERGE_MSG', 'TAG_EDITMSG'],
14974
f8e6b4f82086 patch 8.1.0498: /etc/gitconfig not recognized at a gitconfig file
Bram Moolenaar <Bram@vim.org>
parents: 14946
diff changeset
177 \ 'gitconfig': ['file.git/config', '.gitconfig', '.gitmodules', 'file.git/modules//config', '/.config/git/config', '/etc/gitconfig'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
178 \ 'gitolite': ['gitolite.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
179 \ 'gitrebase': ['git-rebase-todo'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
180 \ 'gitsendemail': ['.gitsendemail.msg.xxxxxx'],
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
181 \ 'gkrellmrc': ['gkrellmrc', 'gkrellmrc_x'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
182 \ 'gnash': ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
183 \ 'gnuplot': ['file.gpi'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
184 \ 'go': ['file.go'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
185 \ 'gp': ['file.gp', '.gprc'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
186 \ 'gpg': ['/.gnupg/options', '/.gnupg/gpg.conf', '/usr/any/gnupg/options.skel'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
187 \ 'grads': ['file.gs'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
188 \ 'gretl': ['file.gretl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
189 \ 'groovy': ['file.gradle', 'file.groovy'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
190 \ 'group': ['any/etc/group', 'any/etc/group-', 'any/etc/group.edit', 'any/etc/gshadow', 'any/etc/gshadow-', 'any/etc/gshadow.edit', 'any/var/backups/group.bak', 'any/var/backups/gshadow.bak'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
191 \ 'grub': ['/boot/grub/menu.lst', '/boot/grub/grub.conf', '/etc/grub.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
192 \ 'gsp': ['file.gsp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
193 \ 'gtkrc': ['.gtkrc', 'gtkrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
194 \ 'haml': ['file.haml'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
195 \ 'hamster': ['file.hsc', 'file.hsm'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
196 \ 'haskell': ['file.hs', 'file.hs-boot'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
197 \ 'haste': ['file.ht'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
198 \ 'hastepreproc': ['file.htpp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
199 \ 'hb': ['file.hb'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
200 \ 'hercules': ['file.vc', 'file.ev', 'file.sum', 'file.errsum'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
201 \ 'hex': ['file.hex', 'file.h32'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
202 \ 'hgcommit': ['hg-editor-file.txt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
203 \ 'hog': ['file.hog', 'snort.conf', 'vision.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
204 \ 'hostconf': ['/etc/host.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
205 \ 'hostsaccess': ['/etc/hosts.allow', '/etc/hosts.deny'],
16562
a6c073fa99e1 patch 8.1.1284: detecting *.tmpl as htmlcheetah is outdated
Bram Moolenaar <Bram@vim.org>
parents: 16364
diff changeset
206 \ 'template': ['file.tmpl'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
207 \ 'htmlm4': ['file.html.m4'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
208 \ 'httest': ['file.htt', 'file.htb'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
209 \ 'ibasic': ['file.iba', 'file.ibi'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
210 \ 'icemenu': ['/.icewm/menu'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
211 \ 'icon': ['file.icn'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
212 \ 'indent': ['.indent.pro', 'indentrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
213 \ 'inform': ['file.inf', 'file.INF'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
214 \ 'initng': ['/etc/initng/any/file.i', 'file.ii'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
215 \ 'inittab': ['inittab'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
216 \ 'ipfilter': ['ipf.conf', 'ipf6.conf', 'ipf.rules'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
217 \ 'iss': ['file.iss'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
218 \ 'ist': ['file.ist', 'file.mst'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
219 \ 'j': ['file.ijs'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
220 \ 'jal': ['file.jal', 'file.JAL'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
221 \ 'jam': ['file.jpl', 'file.jpr'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
222 \ 'java': ['file.java', 'file.jav'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
223 \ 'javacc': ['file.jj', 'file.jjt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
224 \ 'javascript': ['file.js', 'file.javascript', 'file.es', 'file.jsx', 'file.mjs'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
225 \ 'jess': ['file.clp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
226 \ 'jgraph': ['file.jgr'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
227 \ 'jovial': ['file.jov', 'file.j73', 'file.jovial'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
228 \ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx'],
16364
db8f57e3e9f5 patch 8.1.1187: cannot recognize Pipfile
Bram Moolenaar <Bram@vim.org>
parents: 16344
diff changeset
229 \ 'json': ['file.json', 'file.jsonp', 'file.webmanifest', 'Pipfile.lock'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
230 \ 'jsp': ['file.jsp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
231 \ 'kconfig': ['Kconfig', 'Kconfig.debug'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
232 \ 'kivy': ['file.kv'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
233 \ 'kix': ['file.kix'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
234 \ 'kscript': ['file.ks'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
235 \ 'kwt': ['file.k'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
236 \ 'lace': ['file.ace', 'file.ACE'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
237 \ 'latte': ['file.latte', 'file.lte'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
238 \ 'ld': ['file.ld'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
239 \ 'ldif': ['file.ldif'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
240 \ 'less': ['file.less'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
241 \ 'lex': ['file.lex', 'file.l', 'file.lxx', 'file.l++'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
242 \ 'lftp': ['lftp.conf', '.lftprc', 'anylftp/rc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
243 \ 'lhaskell': ['file.lhs'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
244 \ 'libao': ['/etc/libao.conf', '/.libao'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
245 \ 'lifelines': ['file.ll'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
246 \ 'lilo': ['lilo.conf'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
247 \ 'limits': ['/etc/limits', '/etc/anylimits.conf', '/etc/anylimits.d/file.conf'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
248 \ 'liquid': ['file.liquid'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
249 \ 'lisp': ['sbclrc', '.sbclrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
250 \ 'lite': ['file.lite', 'file.lt'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
251 \ 'litestep': ['/LiteStep/any/file.rc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
252 \ 'loginaccess': ['/etc/login.access'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
253 \ 'logindefs': ['/etc/login.defs'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
254 \ 'logtalk': ['file.lgt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
255 \ 'lotos': ['file.lot', 'file.lotos'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
256 \ 'lout': ['file.lou', 'file.lout'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
257 \ 'lprolog': ['file.sig'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
258 \ 'lsl': ['file.lsl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
259 \ 'lss': ['file.lss'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
260 \ 'lua': ['file.lua', 'file.rockspec', 'file.nse'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
261 \ 'lynx': ['lynx.cfg'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
262 \ 'm4': ['file.at'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
263 \ 'mail': ['snd.123', '.letter', '.letter.123', '.followup', '.article', '.article.123', 'pico.123', 'mutt-xx-xxx', 'muttng-xx-xxx', 'ae123.txt', 'file.eml'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
264 \ 'mailaliases': ['/etc/mail/aliases', '/etc/aliases'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
265 \ 'mailcap': ['.mailcap', 'mailcap'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
266 \ 'make': ['file.mk', 'file.mak', 'file.dsp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
267 \ 'mallard': ['file.page'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
268 \ 'man': ['file.man'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
269 \ 'manconf': ['/etc/man.conf', 'man.config'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
270 \ 'map': ['file.map'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
271 \ 'maple': ['file.mv', 'file.mpl', 'file.mws'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
272 \ 'markdown': ['file.markdown', 'file.mdown', 'file.mkd', 'file.mkdn', 'file.mdwn', 'file.md'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
273 \ 'mason': ['file.mason', 'file.mhtml', 'file.comp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
274 \ 'master': ['file.mas', 'file.master'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
275 \ 'mel': ['file.mel'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
276 \ 'messages': ['/log/auth', '/log/cron', '/log/daemon', '/log/debug', '/log/kern', '/log/lpr', '/log/mail', '/log/messages', '/log/news/news', '/log/syslog', '/log/user',
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
277 \ '/log/auth.log', '/log/cron.log', '/log/daemon.log', '/log/debug.log', '/log/kern.log', '/log/lpr.log', '/log/mail.log', '/log/messages.log', '/log/news/news.log', '/log/syslog.log', '/log/user.log',
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
278 \ '/log/auth.err', '/log/cron.err', '/log/daemon.err', '/log/debug.err', '/log/kern.err', '/log/lpr.err', '/log/mail.err', '/log/messages.err', '/log/news/news.err', '/log/syslog.err', '/log/user.err',
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
279 \ '/log/auth.info', '/log/cron.info', '/log/daemon.info', '/log/debug.info', '/log/kern.info', '/log/lpr.info', '/log/mail.info', '/log/messages.info', '/log/news/news.info', '/log/syslog.info', '/log/user.info',
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
280 \ '/log/auth.warn', '/log/cron.warn', '/log/daemon.warn', '/log/debug.warn', '/log/kern.warn', '/log/lpr.warn', '/log/mail.warn', '/log/messages.warn', '/log/news/news.warn', '/log/syslog.warn', '/log/user.warn',
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
281 \ '/log/auth.crit', '/log/cron.crit', '/log/daemon.crit', '/log/debug.crit', '/log/kern.crit', '/log/lpr.crit', '/log/mail.crit', '/log/messages.crit', '/log/news/news.crit', '/log/syslog.crit', '/log/user.crit',
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
282 \ '/log/auth.notice', '/log/cron.notice', '/log/daemon.notice', '/log/debug.notice', '/log/kern.notice', '/log/lpr.notice', '/log/mail.notice', '/log/messages.notice', '/log/news/news.notice', '/log/syslog.notice', '/log/user.notice'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
283 \ 'mf': ['file.mf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
284 \ 'mgl': ['file.mgl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
285 \ 'mgp': ['file.mgp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
286 \ 'mib': ['file.mib', 'file.my'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
287 \ 'mix': ['file.mix', 'file.mixal'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
288 \ 'mma': ['file.nb'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
289 \ 'mmp': ['file.mmp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
290 \ 'modconf': ['/etc/modules.conf', '/etc/modules', '/etc/conf.modules'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
291 \ 'modula2': ['file.m2', 'file.mi'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
292 \ 'monk': ['file.isc', 'file.monk', 'file.ssc', 'file.tsc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
293 \ 'moo': ['file.moo'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
294 \ 'mp': ['file.mp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
295 \ 'mplayerconf': ['mplayer.conf', '/.mplayer/config'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
296 \ 'mrxvtrc': ['mrxvtrc', '.mrxvtrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
297 \ 'msidl': ['file.odl', 'file.mof'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
298 \ 'msql': ['file.msql'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
299 \ 'mupad': ['file.mu'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
300 \ 'mush': ['file.mush'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
301 \ 'muttrc': ['Muttngrc', 'Muttrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
302 \ 'mysql': ['file.mysql'],
12052
7eb512f2a896 patch 8.0.0906: don't recognize Couchbase files
Christian Brabandt <cb@256bit.org>
parents: 12029
diff changeset
303 \ 'n1ql': ['file.n1ql', 'file.nql'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
304 \ 'named': ['namedfile.conf', 'rndcfile.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
305 \ 'nanorc': ['/etc/nanorc', 'file.nanorc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
306 \ 'ncf': ['file.ncf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
307 \ 'netrc': ['.netrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
308 \ 'ninja': ['file.ninja'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
309 \ 'nqc': ['file.nqc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
310 \ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
311 \ 'nsis': ['file.nsi', 'file.nsh'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
312 \ 'obj': ['file.obj'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
313 \ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
314 \ 'occam': ['file.occ'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
315 \ 'omnimark': ['file.xom', 'file.xin'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
316 \ 'openroad': ['file.or'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
317 \ 'ora': ['file.ora'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
318 \ 'pamconf': ['/etc/pam.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
319 \ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
320 \ 'pascal': ['file.pas', 'file.dpr'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
321 \ 'passwd': ['any/etc/passwd', 'any/etc/passwd-', 'any/etc/passwd.edit', 'any/etc/shadow', 'any/etc/shadow-', 'any/etc/shadow.edit', 'any/var/backups/passwd.bak', 'any/var/backups/shadow.bak'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
322 \ 'pccts': ['file.g'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
323 \ 'pdf': ['file.pdf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
324 \ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
325 \ 'perl6': ['file.p6', 'file.pm6', 'file.pl6'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
326 \ 'pf': ['pf.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
327 \ 'pfmain': ['main.cf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
328 \ 'php': ['file.php', 'file.php9', 'file.phtml', 'file.ctp'],
13128
41b7a660ed2a patch 8.0.1438: filetype detection test not updated for change
Christian Brabandt <cb@256bit.org>
parents: 12688
diff changeset
329 \ 'lpc': ['file.lpc', 'file.ulpc'],
41b7a660ed2a patch 8.0.1438: filetype detection test not updated for change
Christian Brabandt <cb@256bit.org>
parents: 12688
diff changeset
330 \ 'pike': ['file.pike', 'file.pmod'],
41b7a660ed2a patch 8.0.1438: filetype detection test not updated for change
Christian Brabandt <cb@256bit.org>
parents: 12688
diff changeset
331 \ 'cmod': ['file.cmod'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
332 \ 'pilrc': ['file.rcp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
333 \ 'pine': ['.pinerc', 'pinerc', '.pinercex', 'pinercex'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
334 \ 'pinfo': ['/etc/pinforc', '/.pinforc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
335 \ 'pli': ['file.pli', 'file.pl1'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
336 \ 'plm': ['file.plm', 'file.p36', 'file.pac'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
337 \ 'plp': ['file.plp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
338 \ 'plsql': ['file.pls', 'file.plsql'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
339 \ 'po': ['file.po', 'file.pot'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
340 \ 'pod': ['file.pod'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
341 \ 'pod6': ['file.pod6'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
342 \ 'postscr': ['file.ps', 'file.pfa', 'file.afm', 'file.eps', 'file.epsf', 'file.epsi', 'file.ai'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
343 \ 'pov': ['file.pov'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
344 \ 'povini': ['.povrayrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
345 \ 'ppd': ['file.ppd'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
346 \ 'ppwiz': ['file.it', 'file.ih'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
347 \ 'privoxy': ['file.action'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
348 \ 'proc': ['file.pc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
349 \ 'procmail': ['.procmail', '.procmailrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
350 \ 'prolog': ['file.pdb'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
351 \ 'promela': ['file.pml'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
352 \ 'proto': ['file.proto'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
353 \ 'protocols': ['/etc/protocols'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
354 \ 'psf': ['file.psf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
355 \ 'pyrex': ['file.pyx', 'file.pxd'],
14946
8ca1dc213836 patch 8.1.0484: some file types are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 13182
diff changeset
356 \ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
357 \ 'quake': ['anybaseq2/file.cfg', 'anyid1/file.cfg', 'quake3/file.cfg'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
358 \ 'radiance': ['file.rad', 'file.mat'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
359 \ 'ratpoison': ['.ratpoisonrc', 'ratpoisonrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
360 \ 'rc': ['file.rc', 'file.rch'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
361 \ 'rcs': ['file,v'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
362 \ 'readline': ['.inputrc', 'inputrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
363 \ 'remind': ['.reminders', 'file.remind', 'file.rem'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
364 \ 'resolv': ['resolv.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
365 \ 'reva': ['file.frt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
366 \ 'rexx': ['file.rex', 'file.orx', 'file.rxo', 'file.rxj', 'file.jrexx', 'file.rexxj', 'file.rexx', 'file.testGroup', 'file.testUnit'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
367 \ 'rib': ['file.rib'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
368 \ 'rnc': ['file.rnc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
369 \ 'rng': ['file.rng'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
370 \ 'robots': ['robots.txt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
371 \ 'rpcgen': ['file.x'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
372 \ 'rpl': ['file.rpl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
373 \ 'rst': ['file.rst'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
374 \ 'rtf': ['file.rtf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
375 \ 'ruby': ['.irbrc', 'irbrc', 'file.rb', 'file.rbw', 'file.gemspec', 'file.ru', 'Gemfile', 'file.builder', 'file.rxml', 'file.rjs', 'file.rant', 'file.rake'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
376 \ 'rust': ['file.rs'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
377 \ 'samba': ['smb.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
378 \ 'sas': ['file.sas'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
379 \ 'sass': ['file.sass'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
380 \ 'sather': ['file.sa'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
381 \ 'sbt': ['file.sbt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
382 \ 'scala': ['file.scala'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
383 \ 'scheme': ['file.scm', 'file.ss', 'file.rkt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
384 \ 'scilab': ['file.sci', 'file.sce'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
385 \ 'screen': ['.screenrc', 'screenrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
386 \ 'scss': ['file.scss'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
387 \ 'sd': ['file.sd'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
388 \ 'sdc': ['file.sdc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
389 \ 'sdl': ['file.sdl', 'file.pr'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
390 \ 'sed': ['file.sed'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
391 \ 'sensors': ['/etc/sensors.conf', '/etc/sensors3.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
392 \ 'services': ['/etc/services'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
393 \ 'setserial': ['/etc/serial.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
394 \ 'sh': ['/etc/udev/cdsymlinks.conf'],
14946
8ca1dc213836 patch 8.1.0484: some file types are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 13182
diff changeset
395 \ 'sieve': ['file.siv', 'file.sieve'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
396 \ 'simula': ['file.sim'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
397 \ 'sinda': ['file.sin', 'file.s85'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
398 \ 'sisu': ['file.sst', 'file.ssm', 'file.ssi', 'file.-sst', 'file._sst', 'file.sst.meta', 'file.-sst.meta', 'file._sst.meta'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
399 \ 'skill': ['file.il', 'file.ils', 'file.cdf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
400 \ 'slang': ['file.sl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
401 \ 'slice': ['file.ice'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
402 \ 'slpconf': ['/etc/slp.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
403 \ 'slpreg': ['/etc/slp.reg'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
404 \ 'slpspi': ['/etc/slp.spi'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
405 \ 'slrnrc': ['.slrnrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
406 \ 'slrnsc': ['file.score'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
407 \ 'sm': ['sendmail.cf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
408 \ 'smarty': ['file.tpl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
409 \ 'smcl': ['file.hlp', 'file.ihlp', 'file.smcl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
410 \ 'smith': ['file.smt', 'file.smith'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
411 \ 'sml': ['file.sml'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
412 \ 'snobol4': ['file.sno', 'file.spt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
413 \ 'spec': ['file.spec'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
414 \ 'spice': ['file.sp', 'file.spice'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
415 \ 'spup': ['file.speedup', 'file.spdata', 'file.spd'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
416 \ 'spyce': ['file.spy', 'file.spi'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
417 \ 'sql': ['file.tyb', 'file.typ', 'file.tyc', 'file.pkb', 'file.pks'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
418 \ 'sqlj': ['file.sqlj'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
419 \ 'sqr': ['file.sqr', 'file.sqi'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
420 \ 'squid': ['squid.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
421 \ 'srec': ['file.s19', 'file.s28', 'file.s37', 'file.mot', 'file.srec'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
422 \ 'sshconfig': ['ssh_config', '/.ssh/config'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
423 \ 'sshdconfig': ['sshd_config'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
424 \ 'st': ['file.st'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
425 \ 'stata': ['file.ado', 'file.do', 'file.imata', 'file.mata'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
426 \ 'stp': ['file.stp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
427 \ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
428 \ 'svg': ['file.svg'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
429 \ 'svn': ['svn-commitfile.tmp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
430 \ 'sysctl': ['/etc/sysctl.conf', '/etc/sysctl.d/file.conf'],
17528
62a6d99082f7 patch 8.1.1762: some filetype rules are in the wrong place
Bram Moolenaar <Bram@vim.org>
parents: 17526
diff changeset
431 \ 'systemd': ['any/systemd/file.automount', 'any/systemd/file.mount', 'any/systemd/file.path', 'any/systemd/file.service', 'any/systemd/file.socket', 'any/systemd/file.swap', 'any/systemd/file.target', 'any/systemd/file.timer', '/etc/systemd/system/some.d/file.conf', '/etc/systemd/system/some.d/.#file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
432 \ 'systemverilog': ['file.sv', 'file.svh'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
433 \ 'tags': ['tags'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
434 \ 'tak': ['file.tak'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
435 \ 'taskdata': ['pending.data', 'completed.data', 'undo.data'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
436 \ 'taskedit': ['file.task'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
437 \ 'tcl': ['file.tcl', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
438 \ 'teraterm': ['file.ttl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
439 \ 'terminfo': ['file.ti'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
440 \ 'tex': ['file.latex', 'file.sty', 'file.dtx', 'file.ltx', 'file.bbl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
441 \ 'texinfo': ['file.texinfo', 'file.texi', 'file.txi'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
442 \ 'texmf': ['texmf.cnf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
443 \ 'text': ['file.text', 'README'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
444 \ 'tf': ['file.tf', '.tfrc', 'tfrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
445 \ 'tidy': ['.tidyrc', 'tidyrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
446 \ 'tilde': ['file.t.html'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
447 \ 'tli': ['file.tli'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
448 \ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
449 \ 'tpp': ['file.tpp'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
450 \ 'treetop': ['file.treetop'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
451 \ 'trustees': ['trustees.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
452 \ 'tsalt': ['file.slt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
453 \ 'tsscl': ['file.tsscl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
454 \ 'tssgm': ['file.tssgm'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
455 \ 'tssop': ['file.tssop'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
456 \ 'twig': ['file.twig'],
16344
d24e5d848a09 patch 8.1.1177: .ts files are recognized as xml, typescript is more common
Bram Moolenaar <Bram@vim.org>
parents: 15097
diff changeset
457 \ 'typescript': ['file.ts'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
458 \ 'uc': ['file.uc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
459 \ 'udevconf': ['/etc/udev/udev.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
460 \ 'udevperm': ['/etc/udev/permissions.d/file.permissions'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
461 \ 'uil': ['file.uit', 'file.uil'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
462 \ 'updatedb': ['/etc/updatedb.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
463 \ 'upstart': ['/usr/share/upstart/file.conf', '/usr/share/upstart/file.override', '/etc/init/file.conf', '/etc/init/file.override', '/.init/file.conf', '/.init/file.override', '/.config/upstart/file.conf', '/.config/upstart/file.override'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
464 \ 'upstreamdat': ['upstream.dat', 'UPSTREAM.DAT', 'upstream.file.dat', 'UPSTREAM.FILE.DAT', 'file.upstream.dat', 'FILE.UPSTREAM.DAT'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
465 \ 'upstreaminstalllog': ['upstreaminstall.log', 'UPSTREAMINSTALL.LOG', 'upstreaminstall.file.log', 'UPSTREAMINSTALL.FILE.LOG', 'file.upstreaminstall.log', 'FILE.UPSTREAMINSTALL.LOG'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
466 \ 'upstreamlog': ['fdrupstream.log', 'upstream.log', 'UPSTREAM.LOG', 'upstream.file.log', 'UPSTREAM.FILE.LOG', 'file.upstream.log', 'FILE.UPSTREAM.LOG', 'UPSTREAM-file.log', 'UPSTREAM-FILE.LOG'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
467 \ 'usserverlog': ['usserver.log', 'USSERVER.LOG', 'usserver.file.log', 'USSERVER.FILE.LOG', 'file.usserver.log', 'FILE.USSERVER.LOG'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
468 \ 'usw2kagtlog': ['usw2kagt.log', 'USW2KAGT.LOG', 'usw2kagt.file.log', 'USW2KAGT.FILE.LOG', 'file.usw2kagt.log', 'FILE.USW2KAGT.LOG'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
469 \ 'vb': ['file.sba', 'file.vb', 'file.vbs', 'file.dsm', 'file.ctl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
470 \ 'vera': ['file.vr', 'file.vri', 'file.vrh'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
471 \ 'verilog': ['file.v'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
472 \ 'verilogams': ['file.va', 'file.vams'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
473 \ 'vgrindefs': ['vgrindefs'],
17528
62a6d99082f7 patch 8.1.1762: some filetype rules are in the wrong place
Bram Moolenaar <Bram@vim.org>
parents: 17526
diff changeset
474 \ 'vhdl': ['file.hdl', 'file.vhd', 'file.vhdl', 'file.vbe', 'file.vst', 'file.vhdl_123'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
475 \ 'vim': ['file.vim', 'file.vba', '.exrc', '_exrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
476 \ 'viminfo': ['.viminfo', '_viminfo'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
477 \ 'vmasm': ['file.mar'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
478 \ 'voscm': ['file.cm'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
479 \ 'vrml': ['file.wrl'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
480 \ 'vroom': ['file.vroom'],
17526
ae379e753465 patch 8.1.1761: filetype "vuejs" causes problems for some users
Bram Moolenaar <Bram@vim.org>
parents: 17188
diff changeset
481 \ 'vue': ['file.vue'],
14946
8ca1dc213836 patch 8.1.0484: some file types are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 13182
diff changeset
482 \ 'wast': ['file.wast', 'file.wat'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
483 \ 'webmacro': ['file.wm'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
484 \ 'wget': ['.wgetrc', 'wgetrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
485 \ 'winbatch': ['file.wbt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
486 \ 'wml': ['file.wml'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
487 \ 'wsml': ['file.wsml'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
488 \ 'wvdial': ['wvdial.conf', '.wvdialrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
489 \ 'xdefaults': ['.Xdefaults', '.Xpdefaults', '.Xresources', 'xdm-config', 'file.ad'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
490 \ 'xhtml': ['file.xhtml', 'file.xht'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
491 \ 'xinetd': ['/etc/xinetd.conf'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
492 \ 'xmath': ['file.msc', 'file.msf'],
16344
d24e5d848a09 patch 8.1.1177: .ts files are recognized as xml, typescript is more common
Bram Moolenaar <Bram@vim.org>
parents: 15097
diff changeset
493 \ 'xml': ['/etc/blkid.tab', '/etc/blkid.tab.old', 'file.xmi', 'file.csproj', 'file.csproj.user', 'file.ui', 'file.tpm', '/etc/xdg/menus/file.menu', 'fglrxrc', 'file.xlf', 'file.xliff', 'file.xul', 'file.wsdl'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
494 \ 'xmodmap': ['anyXmodmap'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
495 \ 'xf86conf': ['xorg.conf', 'xorg.conf-4'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
496 \ 'xpm2': ['file.xpm2'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
497 \ 'xquery': ['file.xq', 'file.xql', 'file.xqm', 'file.xquery', 'file.xqy'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
498 \ 'xs': ['file.xs'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
499 \ 'xsd': ['file.xsd'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
500 \ 'xslt': ['file.xsl', 'file.xslt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
501 \ 'yacc': ['file.yy', 'file.yxx', 'file.y++'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
502 \ 'yaml': ['file.yaml', 'file.yml'],
14991
ebabd6fe3833 patch 8.1.0507: .raml files not properly detected
Bram Moolenaar <Bram@vim.org>
parents: 14974
diff changeset
503 \ 'raml': ['file.raml'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
504 \ 'z8a': ['file.z8a'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
505 \ 'zimbu': ['file.zu'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
506 \ 'zimbutempl': ['file.zut'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
507 \ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
508 \
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
509 \ 'help': [$VIMRUNTIME . '/doc/help.txt'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
510 \ 'xpm': ['file.xpm'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
511 \ }
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
512
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
513 let s:filename_case_checks = {
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
514 \ 'modula2': ['file.DEF', 'file.MOD'],
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
515 \ }
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
516
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
517 func CheckItems(checks)
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
518 for [ft, names] in items(a:checks)
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
519 for i in range(0, len(names) - 1)
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
520 new
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
521 try
17528
62a6d99082f7 patch 8.1.1762: some filetype rules are in the wrong place
Bram Moolenaar <Bram@vim.org>
parents: 17526
diff changeset
522 exe 'edit ' . fnameescape(names[i])
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
523 catch
17555
c2eb5118ba89 patch 8.1.1775: error message may be empty in filetype test
Bram Moolenaar <Bram@vim.org>
parents: 17528
diff changeset
524 call assert_report('cannot edit "' . names[i] . '": ' . v:exception)
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
525 endtry
16920
8d91579414b8 patch 8.1.1461: tests do not run or are not reliable on some systems
Bram Moolenaar <Bram@vim.org>
parents: 16562
diff changeset
526 if &filetype == '' && &readonly
8d91579414b8 patch 8.1.1461: tests do not run or are not reliable on some systems
Bram Moolenaar <Bram@vim.org>
parents: 16562
diff changeset
527 " File exists but not able to edit it (permission denied)
8d91579414b8 patch 8.1.1461: tests do not run or are not reliable on some systems
Bram Moolenaar <Bram@vim.org>
parents: 16562
diff changeset
528 else
8d91579414b8 patch 8.1.1461: tests do not run or are not reliable on some systems
Bram Moolenaar <Bram@vim.org>
parents: 16562
diff changeset
529 call assert_equal(ft, &filetype, 'with file name: ' . names[i])
8d91579414b8 patch 8.1.1461: tests do not run or are not reliable on some systems
Bram Moolenaar <Bram@vim.org>
parents: 16562
diff changeset
530 endif
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
531 bwipe!
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
532 endfor
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
533 endfor
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
534 endfunc
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
535
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
536 func Test_filetype_detection()
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
537 filetype on
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
538 call CheckItems(s:filename_checks)
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
539 if has('fname_case')
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
540 call CheckItems(s:filename_case_checks)
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
541 endif
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
542 filetype off
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
543 endfunc
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
544
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
545 " Filetypes detected from the file contents by scripts.vim
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
546 let s:script_checks = {
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
547 \ 'virata': [['% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
548 \ ['', '% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
549 \ ['', '', '% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
550 \ ['', '', '', '% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
551 \ ['', '', '', '', '% Virata']],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
552 \ 'strace': [['execve("/usr/bin/pstree", ["pstree"], 0x7ff0 /* 63 vars */) = 0'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
553 \ ['15:17:47 execve("/usr/bin/pstree", ["pstree"], ... "_=/usr/bin/strace"]) = 0'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
554 \ ['__libc_start_main and something']],
13168
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
555 \ 'clojure': [['#!/path/clojure']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
556 \ 'scala': [['#!/path/scala']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
557 \ 'tcsh': [['#!/path/tcsh']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
558 \ 'zsh': [['#!/path/zsh']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
559 \ 'tcl': [['#!/path/tclsh'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
560 \ ['#!/path/wish'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
561 \ ['#!/path/expectk'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
562 \ ['#!/path/itclsh'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
563 \ ['#!/path/itkwish']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
564 \ 'expect': [['#!/path/expect']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
565 \ 'gnuplot': [['#!/path/gnuplot']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
566 \ 'make': [['#!/path/make']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
567 \ 'pike': [['#!/path/pike'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
568 \ ['#!/path/pike0'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
569 \ ['#!/path/pike9']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
570 \ 'lua': [['#!/path/lua']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
571 \ 'perl6': [['#!/path/perl6']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
572 \ 'perl': [['#!/path/perl']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
573 \ 'php': [['#!/path/php']],
13182
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
574 \ 'python': [['#!/path/python'],
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
575 \ ['#!/path/python2'],
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
576 \ ['#!/path/python3']],
13168
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
577 \ 'groovy': [['#!/path/groovy']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
578 \ 'ruby': [['#!/path/ruby']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
579 \ 'javascript': [['#!/path/node'],
13182
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
580 \ ['#!/path/js'],
13168
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
581 \ ['#!/path/nodejs'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
582 \ ['#!/path/rhino']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
583 \ 'bc': [['#!/path/bc']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
584 \ 'sed': [['#!/path/sed']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
585 \ 'ocaml': [['#!/path/ocaml']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
586 \ 'awk': [['#!/path/awk']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
587 \ 'wml': [['#!/path/wml']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
588 \ 'scheme': [['#!/path/scheme']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
589 \ 'cfengine': [['#!/path/cfengine']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
590 \ 'erlang': [['#!/path/escript']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
591 \ 'haskell': [['#!/path/haskell']],
17188
93cb37b45636 patch 8.1.1593: filetype not detected for C++ header files without extension
Bram Moolenaar <Bram@vim.org>
parents: 16920
diff changeset
592 \ 'cpp': [['// Standard iostream objects -*- C++ -*-'],
93cb37b45636 patch 8.1.1593: filetype not detected for C++ header files without extension
Bram Moolenaar <Bram@vim.org>
parents: 16920
diff changeset
593 \ ['// -*- C++ -*-']],
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
594 \ }
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
595
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
596 func Test_script_detection()
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
597 filetype on
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
598 for [ft, files] in items(s:script_checks)
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
599 for file in files
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
600 call writefile(file, 'Xtest')
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
601 split Xtest
12688
a6a935b3270e patch 8.0.1222: test functions interfere with each other
Christian Brabandt <cb@256bit.org>
parents: 12255
diff changeset
602 call assert_equal(ft, &filetype, 'for text: ' . string(file))
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
603 bwipe!
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
604 endfor
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
605 endfor
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
606 call delete('Xtest')
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
607 filetype off
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
608 endfunc
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
609
15097
1946487c74ba patch 8.1.0559: command line completion not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 14991
diff changeset
610 func Test_setfiletype_completion()
1946487c74ba patch 8.1.0559: command line completion not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 14991
diff changeset
611 call feedkeys(":setfiletype java\<C-A>\<C-B>\"\<CR>", 'tx')
1946487c74ba patch 8.1.0559: command line completion not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 14991
diff changeset
612 call assert_equal('"setfiletype java javacc javascript', @:)
1946487c74ba patch 8.1.0559: command line completion not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 14991
diff changeset
613 endfunc