annotate src/testdir/test_filetype.vim @ 24598:6b85c09a4d73 v8.2.2838

patch 8.2.2838: file extension .wrap not recognized Commit: https://github.com/vim/vim/commit/e3e598e82b79a2ab5ba5e312d54e65c940e2e809 Author: Liam Beguin <liambeguin@gmail.com> Date: Thu May 6 17:45:22 2021 +0200 patch 8.2.2838: file extension .wrap not recognized Problem: File extension .wrap not recognized. Solution: Use dosini filetype for .wrap files. (Liam Beguin, closes https://github.com/vim/vim/issues/8177)
author Bram Moolenaar <Bram@vim.org>
date Thu, 06 May 2021 18:00:04 +0200
parents 71bd205c72f5
children 1077a2762d06
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'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
48 \ 'a2ps': ['/etc/a2ps.cfg', '/etc/a2ps/file.cfg', 'a2psrc', '.a2psrc', 'any/etc/a2ps.cfg', 'any/etc/a2ps/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
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'],
21483
de74d764d36c patch 8.2.1292: AIDL filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 21018
diff changeset
57 \ 'aidl': ['file.aidl'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
58 \ 'alsaconf': ['.asoundrc', '/usr/share/alsa/alsa.conf', '/etc/asound.conf', 'any/etc/asound.conf', 'any/usr/share/alsa/alsa.conf'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
59 \ '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
60 \ '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
61 \ 'ant': ['build.xml'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
62 \ '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', '/etc/apache2/conf.file/file', '/etc/apache2/file.conf', '/etc/apache2/file.conf-file', '/etc/apache2/mods-file/file', '/etc/apache2/sites-file/file', '/etc/apache2/sites-file/file.com', '/etc/httpd/conf.d/file.conf', '/etc/httpd/conf.d/file.conf-file', 'access.conf', 'access.conf-file', 'any/etc/apache2/conf.file/file', 'any/etc/apache2/file.conf', 'any/etc/apache2/file.conf-file', 'any/etc/apache2/mods-file/file', 'any/etc/apache2/sites-file/file', 'any/etc/apache2/sites-file/file.com', 'any/etc/httpd/conf.d/file.conf', 'any/etc/httpd/conf.d/file.conf-file', 'any/etc/httpd/file.conf', 'apache.conf', 'apache.conf-file', 'apache2.conf', 'apache2.conf-file', 'httpd.conf', 'httpd.conf-file', 'srm.conf', 'srm.conf-file'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
63 \ 'apachestyle': ['/etc/proftpd/file.config,/etc/proftpd/conf.file/file', '/etc/proftpd/conf.file/file', '/etc/proftpd/file.conf', '/etc/proftpd/file.conf-file', 'any/etc/proftpd/conf.file/file', 'any/etc/proftpd/file.conf', 'any/etc/proftpd/file.conf-file', 'proftpd.conf', 'proftpd.conf-file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
64 \ 'applescript': ['file.scpt'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
65 \ 'aptconf': ['apt.conf', '/.aptitude/config', 'any/.aptitude/config'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
66 \ 'arch': ['.arch-inventory', '=tagging-method'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
67 \ '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
68 \ '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
69 \ '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
70 \ 'asn': ['file.asn', 'file.asn1'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
71 \ 'asterisk': ['asterisk/file.conf', 'asterisk/file.conf-file', 'some-asterisk/file.conf', 'some-asterisk/file.conf-file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
72 \ '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
73 \ '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
74 \ 'autoit': ['file.au3'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
75 \ 'automake': ['GNUmakefile.am', 'makefile.am', 'Makefile.am'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
76 \ 'ave': ['file.ave'],
21817
c2c2e57562ee patch 8.2.1458: .gawk files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 21719
diff changeset
77 \ 'awk': ['file.awk', 'file.gawk'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
78 \ 'b': ['file.mch', 'file.ref', 'file.imp'],
22033
cdf95988615a patch 8.2.1566: not all Bazel files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 21849
diff changeset
79 \ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
80 \ '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
81 \ 'bdf': ['file.bdf'],
23960
dbc6c893a67a patch 8.2.2522: Beancount filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23721
diff changeset
82 \ 'beancount': ['file.beancount'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
83 \ 'bib': ['file.bib'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
84 \ 'bindzone': ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
85 \ 'blank': ['file.bl'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
86 \ 'bsdl': ['file.bsd', 'file.bsdl', 'bsd', 'some-bsd'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
87 \ 'bst': ['file.bst'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
88 \ 'bzr': ['bzr_log.any', 'bzr_log.file'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
89 \ 'c': ['enlightenment/file.cfg', 'file.qc', 'file.c', 'some-enlightenment/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
90 \ 'cabal': ['file.cabal'],
22971
f39f960f3ea0 patch 8.2.2032: cabalconfig and cabalproject filetypes not recognized
Bram Moolenaar <Bram@vim.org>
parents: 22918
diff changeset
91 \ 'cabalconfig': ['cabal.config'],
f39f960f3ea0 patch 8.2.2032: cabalconfig and cabalproject filetypes not recognized
Bram Moolenaar <Bram@vim.org>
parents: 22918
diff changeset
92 \ 'cabalproject': ['cabal.project', 'cabal.project.local'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
93 \ 'calendar': ['calendar', '/.calendar/file', '/share/calendar/any/calendar.file', '/share/calendar/calendar.file', 'any/share/calendar/any/calendar.file', 'any/share/calendar/calendar.file'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
94 \ 'catalog': ['catalog', 'sgml.catalogfile', 'sgml.catalog', 'sgml.catalog-file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
95 \ 'cdl': ['file.cdl'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
96 \ 'cdrdaoconf': ['/etc/cdrdao.conf', '/etc/defaults/cdrdao', '/etc/default/cdrdao', '.cdrdao', 'any/etc/cdrdao.conf', 'any/etc/default/cdrdao', 'any/etc/defaults/cdrdao'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
97 \ '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
98 \ '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
99 \ 'cfengine': ['cfengine.conf'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
100 \ 'cfg': ['file.cfg', 'file.hgrc', 'filehgrc', 'hgrc', 'some-hgrc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
101 \ '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
102 \ '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
103 \ '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
104 \ '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
105 \ '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
106 \ '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
107 \ '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
108 \ '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
109 \ 'cmake': ['CMakeLists.txt', 'file.cmake', 'file.cmake.in'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
110 \ 'cmusrc': ['any/.cmus/autosave', 'any/.cmus/rc', 'any/.cmus/command-history', 'any/.cmus/file.theme', 'any/cmus/rc', 'any/cmus/file.theme', '/.cmus/autosave', '/.cmus/command-history', '/.cmus/file.theme', '/.cmus/rc', '/cmus/file.theme', '/cmus/rc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
111 \ '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
112 \ '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
113 \ '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
114 \ 'conf': ['auto.master'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
115 \ 'config': ['configure.in', 'configure.ac', 'Pipfile', '/etc/hostname.file'],
22834
fcbded1e3602 patch 8.2.1964: not all ConTeXt files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 22673
diff changeset
116 \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
117 \ '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
118 \ 'crm': ['file.crm'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
119 \ 'crontab': ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.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
120 \ '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
121 \ '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
122 \ '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
123 \ '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
124 \ '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
125 \ '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
126 \ 'cucumber': ['file.feature'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
127 \ 'cuda': ['file.cu', 'file.cuh'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
128 \ '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
129 \ '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
130 \ 'cvs': ['cvs123'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
131 \ 'cvsrc': ['.cvsrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
132 \ 'cynpp': ['file.cyn'],
18366
c6826a74ad9b patch 8.1.2177: Dart files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 18362
diff changeset
133 \ 'dart': ['file.dart', 'file.drt'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
134 \ '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
135 \ 'dcd': ['file.dcd'],
22462
89566aaebfb2 patch 8.2.1779: some debian changelog files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 22353
diff changeset
136 \ 'debchangelog': ['changelog.Debian', 'changelog.dch', 'NEWS.Debian', 'NEWS.dch', '/debian/changelog'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
137 \ 'debcontrol': ['/debian/control', 'any/debian/control'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
138 \ 'debcopyright': ['/debian/copyright', 'any/debian/copyright'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
139 \ 'debsources': ['/etc/apt/sources.list', '/etc/apt/sources.list.d/file.list', 'any/etc/apt/sources.list', 'any/etc/apt/sources.list.d/file.list'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
140 \ '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
141 \ '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
142 \ 'desc': ['file.desc'],
20804
ad15725594f8 patch 8.2.0954: not all desktop files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 20756
diff changeset
143 \ 'desktop': ['file.desktop', '.directory', 'file.directory'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
144 \ '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
145 \ '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
146 \ 'diff': ['file.diff', 'file.rej'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
147 \ 'dircolors': ['.dir_colors', '.dircolors', '/etc/DIR_COLORS', 'any/etc/DIR_COLORS'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
148 \ 'dnsmasq': ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'],
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18366
diff changeset
149 \ 'dockerfile': ['Containerfile', 'Dockerfile', 'file.Dockerfile'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
150 \ 'dosbatch': ['file.bat', 'file.sys'],
24598
6b85c09a4d73 patch 8.2.2838: file extension .wrap not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24523
diff changeset
151 \ 'dosini': ['.editorconfig', '/etc/pacman.conf', '/etc/yum.conf', 'file.ini', 'npmrc', '.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file', 'any/etc/pacman.conf', 'any/etc/yum.conf', 'any/etc/yum.repos.d/file', 'file.wrap'],
19205
861b1cc1a8a2 patch 8.2.0161: not recognizing .gv file as dot filetype
Bram Moolenaar <Bram@vim.org>
parents: 19164
diff changeset
152 \ 'dot': ['file.dot', 'file.gv'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
153 \ 'dracula': ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
154 \ '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
155 \ '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
156 \ 'dts': ['file.dts', 'file.dtsi'],
23430
9e60204aea6e patch 8.2.2258: not all OCaml related files are detected
Bram Moolenaar <Bram@vim.org>
parents: 23316
diff changeset
157 \ 'dune': ['jbuild', 'dune', 'dune-project', 'dune-workspace'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
158 \ '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
159 \ '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
160 \ '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
161 \ '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
162 \ 'edif': ['file.edf', 'file.edif', 'file.edo'],
21018
2b07e2e7d95b patch 8.2.1060: not all elinks files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 21008
diff changeset
163 \ 'elinks': ['elinks.conf'],
20579
6e6c98dc5732 patch 8.2.0843: filetype elm not detected
Bram Moolenaar <Bram@vim.org>
parents: 20361
diff changeset
164 \ 'elm': ['file.elm'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
165 \ 'elmfilt': ['filter-rules'],
23721
002fd1de0968 patch 8.2.2402: some filetypes not detected
Bram Moolenaar <Bram@vim.org>
parents: 23701
diff changeset
166 \ 'epuppet': ['file.epp'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
167 \ '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
168 \ 'eruby': ['file.erb', 'file.rhtml'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
169 \ 'esmtprc': ['anyesmtprc', 'esmtprc', 'some-esmtprc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
170 \ '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
171 \ 'esterel': ['file.strl'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
172 \ 'eterm': ['anyEterm/file.cfg', 'Eterm/file.cfg', 'some-Eterm/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
173 \ '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
174 \ '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
175 \ 'exports': ['exports'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
176 \ '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
177 \ '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
178 \ 'fan': ['file.fan', 'file.fwt'],
23701
c5b5e7520fe2 patch 8.2.2392: fennel filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23685
diff changeset
179 \ 'fennel': ['file.fnl'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
180 \ 'fetchmail': ['.fetchmailrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
181 \ '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
182 \ '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
183 \ '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
184 \ 'fortran': ['file.f', 'file.for', 'file.fortran', 'file.fpp', 'file.ftn', 'file.f77', 'file.f90', 'file.f95', 'file.f03', 'file.f08'],
24523
71bd205c72f5 patch 8.2.2801: free Pascal makefile not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24496
diff changeset
185 \ 'fpcmake': ['file.fpc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
186 \ '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
187 \ '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
188 \ 'fstab': ['fstab', 'mtab'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
189 \ 'fvwm': ['/.fvwm/file', 'any/.fvwm/file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
190 \ 'gdb': ['.gdbinit'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
191 \ 'gdmo': ['file.mo', 'file.gdmo'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
192 \ 'gedcom': ['file.ged', 'lltxxxxx.txt', '/tmp/lltmp', '/tmp/lltmp-file', 'any/tmp/lltmp', 'any/tmp/lltmp-file'],
23316
32cc5e9875bb patch 8.2.2203: Moodle gift files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23132
diff changeset
193 \ 'gift': ['file.gift'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
194 \ 'gitcommit': ['COMMIT_EDITMSG', 'MERGE_MSG', 'TAG_EDITMSG'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
195 \ 'gitconfig': ['file.git/config', '.gitconfig', '.gitmodules', 'file.git/modules//config', '/.config/git/config', '/etc/gitconfig', '/etc/gitconfig.d/file', '/.gitconfig.d/file', 'any/.config/git/config', 'any/.gitconfig.d/file', 'some.git/config', 'some.git/modules/any/config'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
196 \ 'gitolite': ['gitolite.conf', '/gitolite-admin/conf/file', 'any/gitolite-admin/conf/file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
197 \ '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
198 \ 'gitsendemail': ['.gitsendemail.msg.xxxxxx'],
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
199 \ '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
200 \ '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
201 \ '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
202 \ '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
203 \ 'gp': ['file.gp', '.gprc'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
204 \ 'gpg': ['/.gnupg/options', '/.gnupg/gpg.conf', '/usr/any/gnupg/options.skel', 'any/.gnupg/gpg.conf', 'any/.gnupg/options', 'any/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
205 \ '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
206 \ '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
207 \ 'groovy': ['file.gradle', 'file.groovy'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
208 \ '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', '/etc/group', '/etc/group-', '/etc/group.edit', '/etc/gshadow', '/etc/gshadow-', '/etc/gshadow.edit', '/var/backups/group.bak', '/var/backups/gshadow.bak'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
209 \ 'grub': ['/boot/grub/menu.lst', '/boot/grub/grub.conf', '/etc/grub.conf', 'any/boot/grub/grub.conf', 'any/boot/grub/menu.lst', 'any/etc/grub.conf'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
210 \ 'gsp': ['file.gsp'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
211 \ 'gtkrc': ['.gtkrc', 'gtkrc', '.gtkrc-file', 'gtkrc-file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
212 \ 'haml': ['file.haml'],
22989
7160e85d62ff patch 8.2.2041: haskell filetype not optimally recognized
Bram Moolenaar <Bram@vim.org>
parents: 22971
diff changeset
213 \ 'hamster': ['file.hsm'],
7160e85d62ff patch 8.2.2041: haskell filetype not optimally recognized
Bram Moolenaar <Bram@vim.org>
parents: 22971
diff changeset
214 \ 'haskell': ['file.hs', 'file.hsc', 'file.hs-boot'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
215 \ '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
216 \ '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
217 \ '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
218 \ '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
219 \ '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
220 \ '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
221 \ 'hog': ['file.hog', 'snort.conf', 'vision.conf'],
18362
8144f89e6f28 patch 8.1.2175: meson files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 17867
diff changeset
222 \ 'hollywood': ['file.hws'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
223 \ 'hostconf': ['/etc/host.conf', 'any/etc/host.conf'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
224 \ 'hostsaccess': ['/etc/hosts.allow', '/etc/hosts.deny', 'any/etc/hosts.allow', 'any/etc/hosts.deny'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
225 \ 'logcheck': ['/etc/logcheck/file.d-some/file', '/etc/logcheck/file.d/file', 'any/etc/logcheck/file.d-some/file', 'any/etc/logcheck/file.d/file'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
226 \ 'modula3': ['file.m3', 'file.mg', 'file.i3', 'file.ig'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
227 \ 'natural': ['file.NSA', 'file.NSC', 'file.NSG', 'file.NSL', 'file.NSM', 'file.NSN', 'file.NSP', 'file.NSS'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
228 \ 'neomuttrc': ['Neomuttrc', '.neomuttrc', '.neomuttrc-file', '/.neomutt/neomuttrc', '/.neomutt/neomuttrc-file', 'Neomuttrc', 'Neomuttrc-file', 'any/.neomutt/neomuttrc', 'any/.neomutt/neomuttrc-file', 'neomuttrc', 'neomuttrc-file'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
229 \ 'opl': ['file.OPL', 'file.OPl', 'file.OpL', 'file.Opl', 'file.oPL', 'file.oPl', 'file.opL', 'file.opl'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
230 \ 'pcmk': ['file.pcmk'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
231 \ 'r': ['file.r'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
232 \ 'rhelp': ['file.rd'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
233 \ 'rmd': ['file.rmd', 'file.smd'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
234 \ 'rnoweb': ['file.rnw', 'file.snw'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
235 \ 'rrst': ['file.rrst', 'file.srst'],
16562
a6c073fa99e1 patch 8.1.1284: detecting *.tmpl as htmlcheetah is outdated
Bram Moolenaar <Bram@vim.org>
parents: 16364
diff changeset
236 \ '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
237 \ '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
238 \ '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
239 \ 'ibasic': ['file.iba', 'file.ibi'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
240 \ 'icemenu': ['/.icewm/menu', 'any/.icewm/menu'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
241 \ '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
242 \ '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
243 \ 'inform': ['file.inf', 'file.INF'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
244 \ 'initng': ['/etc/initng/any/file.i', 'file.ii', 'any/etc/initng/any/file.i'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
245 \ 'inittab': ['inittab'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
246 \ '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
247 \ '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
248 \ '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
249 \ '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
250 \ 'jal': ['file.jal', 'file.JAL'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
251 \ 'jam': ['file.jpl', 'file.jpr', 'JAM-file.file', 'JAM.file', 'Prl-file.file', 'Prl.file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
252 \ '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
253 \ 'javacc': ['file.jj', 'file.jjt'],
18707
e190e64d253b patch 8.1.2345: .cjs files are not recognized as Javascript
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
254 \ 'javascript': ['file.js', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs'],
17867
180fb9981255 patch 8.1.1930: cannot recognize .jsx and .tsx files
Bram Moolenaar <Bram@vim.org>
parents: 17555
diff changeset
255 \ 'javascriptreact': ['file.jsx'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
256 \ '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
257 \ '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
258 \ 'jovial': ['file.jov', 'file.j73', 'file.jovial'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
259 \ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file'],
16364
db8f57e3e9f5 patch 8.1.1187: cannot recognize Pipfile
Bram Moolenaar <Bram@vim.org>
parents: 16344
diff changeset
260 \ '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
261 \ 'jsp': ['file.jsp'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
262 \ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
263 \ '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
264 \ 'kix': ['file.kix'],
19263
06d9be5c0107 patch 8.2.0190: Kotlin files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 19205
diff changeset
265 \ 'kotlin': ['file.kt', 'file.ktm', 'file.kts'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
266 \ '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
267 \ '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
268 \ '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
269 \ '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
270 \ '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
271 \ '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
272 \ '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
273 \ 'lex': ['file.lex', 'file.l', 'file.lxx', 'file.l++'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
274 \ 'lftp': ['lftp.conf', '.lftprc', 'anylftp/rc', 'lftp/rc', 'some-lftp/rc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
275 \ 'lhaskell': ['file.lhs'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
276 \ 'libao': ['/etc/libao.conf', '/.libao', 'any/.libao', 'any/etc/libao.conf'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
277 \ 'lifelines': ['file.ll'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
278 \ 'lilo': ['lilo.conf', 'lilo.conf-file'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
279 \ 'limits': ['/etc/limits', '/etc/anylimits.conf', '/etc/anylimits.d/file.conf', '/etc/limits.conf', '/etc/limits.d/file.conf', '/etc/some-limits.conf', '/etc/some-limits.d/file.conf', 'any/etc/limits', 'any/etc/limits.conf', 'any/etc/limits.d/file.conf', 'any/etc/some-limits.conf', 'any/etc/some-limits.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
280 \ 'liquid': ['file.liquid'],
20639
3dab6fbe133c patch 8.2.0873: a .jl file can be sawfish (lisp) or Julia
Bram Moolenaar <Bram@vim.org>
parents: 20579
diff changeset
281 \ 'lisp': ['file.lsp', 'file.lisp', 'file.el', 'file.cl', '.emacs', '.sawfishrc', 'sbclrc', '.sbclrc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
282 \ 'lite': ['file.lite', 'file.lt'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
283 \ 'litestep': ['/LiteStep/any/file.rc', 'any/LiteStep/any/file.rc'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
284 \ 'loginaccess': ['/etc/login.access', 'any/etc/login.access'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
285 \ 'logindefs': ['/etc/login.defs', 'any/etc/login.defs'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
286 \ '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
287 \ '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
288 \ '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
289 \ '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
290 \ '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
291 \ '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
292 \ '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
293 \ 'lynx': ['lynx.cfg'],
24458
1d126cb683c1 patch 8.2.2769: Modula-3 config files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24347
diff changeset
294 \ 'm3build': ['m3makefile', 'm3overrides'],
1d126cb683c1 patch 8.2.2769: Modula-3 config files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24347
diff changeset
295 \ 'm3quake': ['file.quake', 'cm3.cfg'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
296 \ 'm4': ['file.at'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
297 \ 'mail': ['snd.123', '.letter', '.letter.123', '.followup', '.article', '.article.123', 'pico.123', 'mutt-xx-xxx', 'muttng-xx-xxx', 'ae123.txt', 'file.eml', 'reportbug-file'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
298 \ 'mailaliases': ['/etc/mail/aliases', '/etc/aliases', 'any/etc/aliases', 'any/etc/mail/aliases'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
299 \ 'mailcap': ['.mailcap', 'mailcap'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
300 \ 'make': ['file.mk', 'file.mak', 'file.dsp', 'makefile', 'Makefile', 'makefile-file', 'Makefile-file', 'some-makefile', 'some-Makefile'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
301 \ '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
302 \ 'man': ['file.man'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
303 \ 'manconf': ['/etc/man.conf', 'man.config', 'any/etc/man.conf'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
304 \ '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
305 \ '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
306 \ '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
307 \ '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
308 \ '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
309 \ 'mel': ['file.mel'],
18362
8144f89e6f28 patch 8.1.2175: meson files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 17867
diff changeset
310 \ 'meson': ['meson.build', 'meson_options.txt'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
311 \ '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
312 \ '/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
313 \ '/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
314 \ '/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
315 \ '/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
316 \ '/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
317 \ '/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
318 \ '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
319 \ '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
320 \ '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
321 \ '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
322 \ '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
323 \ '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
324 \ 'mmp': ['file.mmp'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
325 \ 'modconf': ['/etc/modules.conf', '/etc/modules', '/etc/conf.modules', '/etc/modprobe.file', 'any/etc/conf.modules', 'any/etc/modprobe.file', 'any/etc/modules', 'any/etc/modules.conf'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
326 \ '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
327 \ '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
328 \ '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
329 \ 'mp': ['file.mp'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
330 \ 'mplayerconf': ['mplayer.conf', '/.mplayer/config', 'any/.mplayer/config'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
331 \ '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
332 \ '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
333 \ '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
334 \ '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
335 \ 'mush': ['file.mush'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
336 \ 'muttrc': ['Muttngrc', 'Muttrc', '.muttngrc', '.muttngrc-file', '.muttrc', '.muttrc-file', '/.mutt/muttngrc', '/.mutt/muttngrc-file', '/.mutt/muttrc', '/.mutt/muttrc-file', '/.muttng/muttngrc', '/.muttng/muttngrc-file', '/.muttng/muttrc', '/.muttng/muttrc-file', '/etc/Muttrc.d/file', 'Muttngrc-file', 'Muttrc-file', 'any/.mutt/muttngrc', 'any/.mutt/muttngrc-file', 'any/.mutt/muttrc', 'any/.mutt/muttrc-file', 'any/.muttng/muttngrc', 'any/.muttng/muttngrc-file', 'any/.muttng/muttrc', 'any/.muttng/muttrc-file', 'any/etc/Muttrc.d/file', 'muttngrc', 'muttngrc-file', 'muttrc', 'muttrc-file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
337 \ 'mysql': ['file.mysql'],
12052
7eb512f2a896 patch 8.0.0906: don't recognize Couchbase files
Christian Brabandt <cb@256bit.org>
parents: 12029
diff changeset
338 \ 'n1ql': ['file.n1ql', 'file.nql'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
339 \ 'named': ['namedfile.conf', 'rndcfile.conf', 'named-file.conf', 'named.conf', 'rndc-file.conf', 'rndc-file.key', 'rndc.conf', 'rndc.key'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
340 \ 'nanorc': ['/etc/nanorc', 'file.nanorc', 'any/etc/nanorc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
341 \ '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
342 \ 'netrc': ['.netrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
343 \ '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
344 \ 'nqc': ['file.nqc'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
345 \ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
346 \ '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
347 \ 'obj': ['file.obj'],
23430
9e60204aea6e patch 8.2.2258: not all OCaml related files are detected
Bram Moolenaar <Bram@vim.org>
parents: 23316
diff changeset
348 \ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
349 \ '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
350 \ 'omnimark': ['file.xom', 'file.xin'],
23430
9e60204aea6e patch 8.2.2258: not all OCaml related files are detected
Bram Moolenaar <Bram@vim.org>
parents: 23316
diff changeset
351 \ 'opam': ['opam', 'file.opam', 'file.opam.template'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
352 \ '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
353 \ 'ora': ['file.ora'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
354 \ 'pamconf': ['/etc/pam.conf', '/etc/pam.d/file', 'any/etc/pam.conf', 'any/etc/pam.d/file'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
355 \ 'pamenv': ['/etc/security/pam_env.conf', '/home/user/.pam_environment', '.pam_environment', 'pam_env.conf'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
356 \ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'],
23584
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
357 \ 'pascal': ['file.pas', 'file.dpr', 'file.lpr'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
358 \ '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', '/etc/passwd', '/etc/passwd-', '/etc/passwd.edit', '/etc/shadow', '/etc/shadow-', '/etc/shadow.edit', '/var/backups/passwd.bak', '/var/backups/shadow.bak'],
22918
f83e31419f6e patch 8.2.2006: .pbtxt files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 22834
diff changeset
359 \ 'pbtxt': ['file.pbtxt'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
360 \ '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
361 \ '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
362 \ '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
363 \ '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
364 \ '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
365 \ '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
366 \ '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
367 \ '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
368 \ '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
369 \ '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
370 \ 'pine': ['.pinerc', 'pinerc', '.pinercex', 'pinercex'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
371 \ 'pinfo': ['/etc/pinforc', '/.pinforc', 'any/.pinforc', 'any/etc/pinforc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
372 \ '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
373 \ '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
374 \ '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
375 \ '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
376 \ '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
377 \ 'pod': ['file.pod'],
24099
209caadb403f patch 8.2.2591: Poke files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23962
diff changeset
378 \ 'poke': ['file.pk'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
379 \ '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
380 \ '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
381 \ 'povini': ['.povrayrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
382 \ '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
383 \ '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
384 \ '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
385 \ '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
386 \ '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
387 \ '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
388 \ '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
389 \ 'proto': ['file.proto'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
390 \ 'protocols': ['/etc/protocols', 'any/etc/protocols'],
24299
201239ff51d7 patch 8.2.2690: PowerShell files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24168
diff changeset
391 \ 'ps1': ['file.ps1', 'file.psd1', 'file.psm1', 'file.pssc'],
201239ff51d7 patch 8.2.2690: PowerShell files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24168
diff changeset
392 \ 'ps1xml': ['file.ps1xml'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
393 \ 'psf': ['file.psf'],
24466
f5a6a6e98ec4 patch 8.2.2773: PSL filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24458
diff changeset
394 \ 'psl': ['file.psl'],
23584
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
395 \ 'puppet': ['file.pp'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
396 \ 'pyrex': ['file.pyx', 'file.pxd'],
20863
69cd83562725 patch 8.2.0983: SConstruct file type not recognized
Bram Moolenaar <Bram@vim.org>
parents: 20857
diff changeset
397 \ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
398 \ 'quake': ['anybaseq2/file.cfg', 'anyid1/file.cfg', 'quake3/file.cfg', 'baseq2/file.cfg', 'id1/file.cfg', 'quake1/file.cfg', 'some-baseq2/file.cfg', 'some-id1/file.cfg', 'some-quake1/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
399 \ 'radiance': ['file.rad', 'file.mat'],
24496
706cfd8bcba6 patch 8.2.2788: Raku is now the only name what once was called perl6
Bram Moolenaar <Bram@vim.org>
parents: 24466
diff changeset
400 \ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
401 \ 'ratpoison': ['.ratpoisonrc', 'ratpoisonrc'],
23721
002fd1de0968 patch 8.2.2402: some filetypes not detected
Bram Moolenaar <Bram@vim.org>
parents: 23701
diff changeset
402 \ 'rbs': ['file.rbs'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
403 \ '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
404 \ '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
405 \ 'readline': ['.inputrc', 'inputrc'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
406 \ 'remind': ['.reminders', 'file.remind', 'file.rem', '.reminders-file'],
18926
50355c55519f patch 8.2.0024: filetype Rego not recognized
Bram Moolenaar <Bram@vim.org>
parents: 18707
diff changeset
407 \ 'rego': ['file.rego'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
408 \ '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
409 \ '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
410 \ '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
411 \ '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
412 \ '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
413 \ '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
414 \ '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
415 \ '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
416 \ '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
417 \ '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
418 \ 'rtf': ['file.rtf'],
23721
002fd1de0968 patch 8.2.2402: some filetypes not detected
Bram Moolenaar <Bram@vim.org>
parents: 23701
diff changeset
419 \ 'ruby': ['.irbrc', 'irbrc', 'file.rb', 'file.rbw', 'file.gemspec', 'file.ru', 'Gemfile', 'file.builder', 'file.rxml', 'file.rjs', 'file.rant', 'file.rake', 'rakefile', 'Rakefile', 'rantfile', 'Rantfile', 'rakefile-file', 'Rakefile-file', 'Puppetfile'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
420 \ '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
421 \ '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
422 \ '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
423 \ '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
424 \ '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
425 \ '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
426 \ '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
427 \ '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
428 \ '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
429 \ 'screen': ['.screenrc', 'screenrc'],
23430
9e60204aea6e patch 8.2.2258: not all OCaml related files are detected
Bram Moolenaar <Bram@vim.org>
parents: 23316
diff changeset
430 \ 'sexplib': ['file.sexp'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
431 \ '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
432 \ '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
433 \ '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
434 \ '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
435 \ 'sed': ['file.sed'],
23962
436e702af70c patch 8.2.2523: Svelte filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23960
diff changeset
436 \ 'svelte': ['file.svelte'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
437 \ 'sensors': ['/etc/sensors.conf', '/etc/sensors3.conf', 'any/etc/sensors.conf', 'any/etc/sensors3.conf'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
438 \ 'services': ['/etc/services', 'any/etc/services'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
439 \ 'setserial': ['/etc/serial.conf', 'any/etc/serial.conf'],
24347
1df930301857 patch 8.2.2714: filetype pattern ending in star is too far up
Bram Moolenaar <Bram@vim.org>
parents: 24299
diff changeset
440 \ 'sh': ['.bashrc', 'file.bash', '/usr/share/doc/bash-completion/filter.sh','/etc/udev/cdsymlinks.conf', 'any/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
441 \ '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
442 \ '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
443 \ '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
444 \ '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
445 \ '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
446 \ '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
447 \ 'slice': ['file.ice'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
448 \ 'slpconf': ['/etc/slp.conf', 'any/etc/slp.conf'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
449 \ 'slpreg': ['/etc/slp.reg', 'any/etc/slp.reg'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
450 \ 'slpspi': ['/etc/slp.spi', 'any/etc/slp.spi'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
451 \ 'slrnrc': ['.slrnrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
452 \ '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
453 \ '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
454 \ '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
455 \ '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
456 \ '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
457 \ '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
458 \ 'snobol4': ['file.sno', 'file.spt'],
23622
53cbcc2d2234 patch 8.2.2353: spartql files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 23584
diff changeset
459 \ 'sparql': ['file.rq', 'file.sparql'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
460 \ '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
461 \ '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
462 \ '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
463 \ '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
464 \ '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
465 \ '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
466 \ '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
467 \ '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
468 \ 'srec': ['file.s19', 'file.s28', 'file.s37', 'file.mot', 'file.srec'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
469 \ 'sshconfig': ['ssh_config', '/.ssh/config', '/etc/ssh/ssh_config.d/file.conf', 'any/etc/ssh/ssh_config.d/file.conf', 'any/.ssh/config'],
20749
dae1811e84dd patch 8.2.0927: some sshconfig and ssdhconfig files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 20639
diff changeset
470 \ 'sshdconfig': ['sshd_config', '/etc/ssh/sshd_config.d/file.conf', 'any/etc/ssh/sshd_config.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
471 \ '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
472 \ '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
473 \ 'stp': ['file.stp'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
474 \ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp', '/etc/sudoers'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
475 \ 'svg': ['file.svg'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
476 \ 'svn': ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'],
19164
bfe90421e223 patch 8.2.0141: no swift filetype detection
Bram Moolenaar <Bram@vim.org>
parents: 18926
diff changeset
477 \ 'swift': ['file.swift'],
bfe90421e223 patch 8.2.0141: no swift filetype detection
Bram Moolenaar <Bram@vim.org>
parents: 18926
diff changeset
478 \ 'swiftgyb': ['file.swift.gyb'],
bfe90421e223 patch 8.2.0141: no swift filetype detection
Bram Moolenaar <Bram@vim.org>
parents: 18926
diff changeset
479 \ 'sil': ['file.sil'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
480 \ 'sysctl': ['/etc/sysctl.conf', '/etc/sysctl.d/file.conf', 'any/etc/sysctl.conf', 'any/etc/sysctl.d/file.conf'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
481 \ 'systemd': ['any/systemd/file.automount', 'any/systemd/file.dnssd', 'any/systemd/file.link', 'any/systemd/file.mount', 'any/systemd/file.netdev', 'any/systemd/file.network', 'any/systemd/file.nspawn', 'any/systemd/file.path', 'any/systemd/file.service', 'any/systemd/file.slice', 'any/systemd/file.socket', 'any/systemd/file.swap', 'any/systemd/file.target', 'any/systemd/file.timer', '/etc/systemd/some.conf.d/file.conf', '/etc/systemd/system/some.d/file.conf', '/etc/systemd/system/some.d/.#file', '/etc/systemd/system/.#otherfile', '/home/user/.config/systemd/user/some.d/mine.conf', '/home/user/.config/systemd/user/some.d/.#file', '/home/user/.config/systemd/user/.#otherfile', '/.config/systemd/user/.#', '/.config/systemd/user/.#-file', '/.config/systemd/user/file.d/.#', '/.config/systemd/user/file.d/.#-file', '/.config/systemd/user/file.d/file.conf', '/etc/systemd/file.conf.d/file.conf', '/etc/systemd/system/.#', '/etc/systemd/system/.#-file', '/etc/systemd/system/file.d/.#', '/etc/systemd/system/file.d/.#-file', '/etc/systemd/system/file.d/file.conf', '/systemd/file.automount', '/systemd/file.dnssd', '/systemd/file.link', '/systemd/file.mount', '/systemd/file.netdev', '/systemd/file.network', '/systemd/file.nspawn', '/systemd/file.path', '/systemd/file.service', '/systemd/file.slice', '/systemd/file.socket', '/systemd/file.swap', '/systemd/file.target', '/systemd/file.timer', 'any/.config/systemd/user/.#', 'any/.config/systemd/user/.#-file', 'any/.config/systemd/user/file.d/.#', 'any/.config/systemd/user/file.d/.#-file', 'any/.config/systemd/user/file.d/file.conf', 'any/etc/systemd/file.conf.d/file.conf', 'any/etc/systemd/system/.#', 'any/etc/systemd/system/.#-file', 'any/etc/systemd/system/file.d/.#', 'any/etc/systemd/system/file.d/.#-file', 'any/etc/systemd/system/file.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
482 \ '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
483 \ 'tags': ['tags'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
484 \ '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
485 \ '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
486 \ '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
487 \ '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
488 \ '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
489 \ '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
490 \ '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
491 \ '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
492 \ 'texmf': ['texmf.cnf'],
24347
1df930301857 patch 8.2.2714: filetype pattern ending in star is too far up
Bram Moolenaar <Bram@vim.org>
parents: 24299
diff changeset
493 \ 'text': ['file.text', 'README', '/usr/share/doc/bash-completion/AUTHORS'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
494 \ 'tf': ['file.tf', '.tfrc', 'tfrc'],
22353
889143dbe2cd patch 8.2.1725: not all Pascal files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 22033
diff changeset
495 \ 'tidy': ['.tidyrc', 'tidyrc', 'tidy.conf'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
496 \ '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
497 \ 'tli': ['file.tli'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
498 \ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf'],
23120
640ec41661b1 patch 8.2.2106: TOML files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23078
diff changeset
499 \ 'toml': ['file.toml'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
500 \ '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
501 \ '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
502 \ '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
503 \ '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
504 \ '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
505 \ '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
506 \ '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
507 \ 'twig': ['file.twig'],
17867
180fb9981255 patch 8.1.1930: cannot recognize .jsx and .tsx files
Bram Moolenaar <Bram@vim.org>
parents: 17555
diff changeset
508 \ 'typescriptreact': ['file.tsx'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
509 \ 'uc': ['file.uc'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
510 \ 'udevconf': ['/etc/udev/udev.conf', 'any/etc/udev/udev.conf'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
511 \ 'udevperm': ['/etc/udev/permissions.d/file.permissions', 'any/etc/udev/permissions.d/file.permissions'],
21849
18a341a4919c patch 8.2.1474: /usr/lib/udef/rules.d not recognized as udevrules
Bram Moolenaar <Bram@vim.org>
parents: 21817
diff changeset
512 \ 'udevrules': ['/etc/udev/rules.d/file.rules', '/usr/lib/udev/rules.d/file.rules', '/lib/udev/rules.d/file.rules'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
513 \ 'uil': ['file.uit', 'file.uil'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
514 \ 'updatedb': ['/etc/updatedb.conf', 'any/etc/updatedb.conf'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
515 \ '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', 'any/.config/upstart/file.conf', 'any/.config/upstart/file.override', 'any/.init/file.conf', 'any/.init/file.override', 'any/etc/init/file.conf', 'any/etc/init/file.override', 'any/usr/share/upstart/file.conf', 'any/usr/share/upstart/file.override'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
516 \ '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
517 \ '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
518 \ '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
519 \ '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
520 \ '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
521 \ '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
522 \ '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
523 \ '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
524 \ '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
525 \ 'vgrindefs': ['vgrindefs'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
526 \ 'vhdl': ['file.hdl', 'file.vhd', 'file.vhdl', 'file.vbe', 'file.vst', 'file.vhdl_123', 'file.vho', 'some.vhdl_1', 'some.vhdl_1-file'],
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
527 \ 'vim': ['file.vim', 'file.vba', '.exrc', '_exrc', 'some-vimrc', 'some-vimrc-file', 'vimrc', 'vimrc-file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
528 \ '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
529 \ '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
530 \ '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
531 \ '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
532 \ '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
533 \ 'vue': ['file.vue'],
14946
8ca1dc213836 patch 8.1.0484: some file types are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 13182
diff changeset
534 \ '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
535 \ '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
536 \ '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
537 \ '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
538 \ 'wml': ['file.wml'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
539 \ 'wsh': ['file.wsf', 'file.wsc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
540 \ '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
541 \ 'wvdial': ['wvdial.conf', '.wvdialrc'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
542 \ 'xdefaults': ['.Xdefaults', '.Xpdefaults', '.Xresources', 'xdm-config', 'file.ad', '/Xresources/file', '/app-defaults/file', 'Xresources', 'Xresources-file', 'any/Xresources/file', 'any/app-defaults/file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
543 \ 'xhtml': ['file.xhtml', 'file.xht'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
544 \ 'xinetd': ['/etc/xinetd.conf', '/etc/xinetd.d/file', 'any/etc/xinetd.conf', 'any/etc/xinetd.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
545 \ 'xmath': ['file.msc', 'file.msf'],
24299
201239ff51d7 patch 8.2.2690: PowerShell files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24168
diff changeset
546 \ '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', 'file.wpl', 'any/etc/blkid.tab', 'any/etc/blkid.tab.old', 'any/etc/xdg/menus/file.menu', 'file.atom', 'file.rss', 'file.cdxml', 'file.psc1'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
547 \ 'xmodmap': ['anyXmodmap', 'Xmodmap', 'some-Xmodmap', 'some-xmodmap', 'some-xmodmap-file', 'xmodmap', 'xmodmap-file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
548 \ '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
549 \ '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
550 \ '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
551 \ '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
552 \ '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
553 \ '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
554 \ '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
555 \ '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
556 \ '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
557 \ '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
558 \ '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
559 \ 'zimbutempl': ['file.zut'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
560 \ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', '.zcompdump-file', '.zlog', '.zlog-file', '.zsh', '.zsh-file', 'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
561 \
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
562 \ '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
563 \ '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
564 \ }
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
565
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
566 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
567 \ 'modula2': ['file.DEF', 'file.MOD'],
22033
cdf95988615a patch 8.2.1566: not all Bazel files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 21849
diff changeset
568 \ 'bzl': ['file.BUILD', 'BUILD'],
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
569 \ }
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
570
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
571 func CheckItems(checks)
22673
67aa7507ea2e patch 8.2.1885: filetype tests unnessarily creates swap files
Bram Moolenaar <Bram@vim.org>
parents: 22557
diff changeset
572 set noswapfile
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
573 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
574 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
575 new
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
576 try
17528
62a6d99082f7 patch 8.1.1762: some filetype rules are in the wrong place
Bram Moolenaar <Bram@vim.org>
parents: 17526
diff changeset
577 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
578 catch
17555
c2eb5118ba89 patch 8.1.1775: error message may be empty in filetype test
Bram Moolenaar <Bram@vim.org>
parents: 17528
diff changeset
579 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
580 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
581 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
582 " 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
583 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
584 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
585 endif
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
586 bwipe!
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
587 endfor
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
588 endfor
22673
67aa7507ea2e patch 8.2.1885: filetype tests unnessarily creates swap files
Bram Moolenaar <Bram@vim.org>
parents: 22557
diff changeset
589 set swapfile&
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
590 endfunc
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
591
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
592 func Test_filetype_detection()
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
593 filetype on
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
594 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
595 if has('fname_case')
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
596 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
597 endif
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
598 filetype off
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
599 endfunc
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
600
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
601 " 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
602 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
603 \ 'virata': [['% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
604 \ ['', '% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
605 \ ['', '', '% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
606 \ ['', '', '', '% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
607 \ ['', '', '', '', '% Virata']],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
608 \ '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
609 \ ['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
610 \ ['__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
611 \ '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
612 \ '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
613 \ '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
614 \ '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
615 \ '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
616 \ ['#!/path/wish'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
617 \ ['#!/path/expectk'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
618 \ ['#!/path/itclsh'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
619 \ ['#!/path/itkwish']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
620 \ '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
621 \ '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
622 \ '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
623 \ '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
624 \ ['#!/path/pike0'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
625 \ ['#!/path/pike9']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
626 \ 'lua': [['#!/path/lua']],
24496
706cfd8bcba6 patch 8.2.2788: Raku is now the only name what once was called perl6
Bram Moolenaar <Bram@vim.org>
parents: 24466
diff changeset
627 \ 'raku': [['#!/path/raku']],
13168
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
628 \ '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
629 \ 'php': [['#!/path/php']],
13182
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
630 \ 'python': [['#!/path/python'],
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
631 \ ['#!/path/python2'],
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
632 \ ['#!/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
633 \ '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
634 \ '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
635 \ 'javascript': [['#!/path/node'],
13182
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
636 \ ['#!/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
637 \ ['#!/path/nodejs'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
638 \ ['#!/path/rhino']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
639 \ '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
640 \ '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
641 \ 'ocaml': [['#!/path/ocaml']],
21817
c2c2e57562ee patch 8.2.1458: .gawk files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 21719
diff changeset
642 \ 'awk': [['#!/path/awk'],
c2c2e57562ee patch 8.2.1458: .gawk files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 21719
diff changeset
643 \ ['#!/path/gawk']],
13168
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
644 \ '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
645 \ '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
646 \ '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
647 \ '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
648 \ '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
649 \ '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
650 \ ['// -*- C++ -*-']],
19607
d24e6844aabd patch 8.2.0360: yaml files are only recognized by the file extension
Bram Moolenaar <Bram@vim.org>
parents: 19471
diff changeset
651 \ 'yaml': [['%YAML 1.2']],
23584
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
652 \ 'pascal': [['#!/path/instantfpc']],
23701
c5b5e7520fe2 patch 8.2.2392: fennel filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23685
diff changeset
653 \ 'fennel': [['#!/path/fennel']],
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
654 \ }
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
655
20756
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
656 " Various forms of "env" optional arguments.
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
657 let s:script_env_checks = {
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
658 \ 'perl': [['#!/usr/bin/env VAR=val perl']],
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
659 \ 'scala': [['#!/usr/bin/env VAR=val VVAR=vval scala']],
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
660 \ 'awk': [['#!/usr/bin/env VAR=val -i awk']],
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
661 \ 'scheme': [['#!/usr/bin/env VAR=val --ignore-environment scheme']],
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
662 \ 'python': [['#!/usr/bin/env VAR=val -S python -w -T']],
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
663 \ 'wml': [['#!/usr/bin/env VAR=val --split-string wml']],
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
664 \ }
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
665
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
666 func Run_script_detection(test_dict)
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
667 filetype on
20756
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
668 for [ft, files] in items(a:test_dict)
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
669 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
670 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
671 split Xtest
12688
a6a935b3270e patch 8.0.1222: test functions interfere with each other
Christian Brabandt <cb@256bit.org>
parents: 12255
diff changeset
672 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
673 bwipe!
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
674 endfor
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
675 endfor
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
676 call delete('Xtest')
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
677 filetype off
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
678 endfunc
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
679
20756
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
680 func Test_script_detection()
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
681 call Run_script_detection(s:script_checks)
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
682 call Run_script_detection(s:script_env_checks)
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
683 endfunc
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
684
15097
1946487c74ba patch 8.1.0559: command line completion not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 14991
diff changeset
685 func Test_setfiletype_completion()
1946487c74ba patch 8.1.0559: command line completion not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 14991
diff changeset
686 call feedkeys(":setfiletype java\<C-A>\<C-B>\"\<CR>", 'tx')
17867
180fb9981255 patch 8.1.1930: cannot recognize .jsx and .tsx files
Bram Moolenaar <Bram@vim.org>
parents: 17555
diff changeset
687 call assert_equal('"setfiletype java javacc javascript javascriptreact', @:)
15097
1946487c74ba patch 8.1.0559: command line completion not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 14991
diff changeset
688 endfunc
19425
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
689
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
690 " Test for ':filetype detect' command for a buffer without a file
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
691 func Test_emptybuf_ftdetect()
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
692 new
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
693 call setline(1, '#!/bin/sh')
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
694 call assert_equal('', &filetype)
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
695 filetype detect
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
696 call assert_equal('sh', &filetype)
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
697 close!
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
698 endfunc
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
699
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
700 " Test for ':filetype indent on' and ':filetype indent off' commands
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
701 func Test_filetype_indent_off()
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
702 new Xtest.vim
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
703 filetype indent on
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
704 call assert_equal(1, g:did_indent_on)
19471
cb73f4ae6b7c patch 8.2.0293: various Ex commands not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 19425
diff changeset
705 call assert_equal(['filetype detection:ON plugin:OFF indent:ON'],
cb73f4ae6b7c patch 8.2.0293: various Ex commands not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 19425
diff changeset
706 \ execute('filetype')->split("\n"))
19425
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
707 filetype indent off
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
708 call assert_equal(0, exists('g:did_indent_on'))
19471
cb73f4ae6b7c patch 8.2.0293: various Ex commands not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 19425
diff changeset
709 call assert_equal(['filetype detection:ON plugin:OFF indent:OFF'],
cb73f4ae6b7c patch 8.2.0293: various Ex commands not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 19425
diff changeset
710 \ execute('filetype')->split("\n"))
19425
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
711 close
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
712 endfunc
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
713
21008
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
714 func Test_hook_file()
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
715 filetype on
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
716
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
717 call writefile(['[Trigger]', 'this is pacman config'], 'Xfile.hook')
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
718 split Xfile.hook
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
719 call assert_equal('dosini', &filetype)
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
720 bwipe!
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
721
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
722 call writefile(['not pacman'], 'Xfile.hook')
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
723 split Xfile.hook
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
724 call assert_notequal('dosini', &filetype)
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
725 bwipe!
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
726
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
727 call delete('Xfile.hook')
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
728 filetype off
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
729 endfunc
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
730
23078
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
731 func Test_ts_file()
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
732 filetype on
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
733
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
734 call writefile(['<?xml version="1.0" encoding="utf-8"?>'], 'Xfile.ts')
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
735 split Xfile.ts
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
736 call assert_equal('xml', &filetype)
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
737 bwipe!
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
738
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
739 call writefile(['// looks like Typescript'], 'Xfile.ts')
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
740 split Xfile.ts
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
741 call assert_equal('typescript', &filetype)
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
742 bwipe!
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
743
23132
855b818aae9b patch 8.2.2112: running tests may leave some files behind
Bram Moolenaar <Bram@vim.org>
parents: 23120
diff changeset
744 call delete('Xfile.ts')
23078
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
745 filetype off
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
746 endfunc
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
747
23685
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
748 func Test_ttl_file()
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
749 filetype on
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
750
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
751 call writefile(['@base <http://example.org/> .'], 'Xfile.ttl')
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
752 split Xfile.ttl
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
753 call assert_equal('turtle', &filetype)
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
754 bwipe!
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
755
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
756 call writefile(['looks like Tera Term Language'], 'Xfile.ttl')
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
757 split Xfile.ttl
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
758 call assert_equal('teraterm', &filetype)
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
759 bwipe!
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
760
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
761 call delete('Xfile.ttl')
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
762 filetype off
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
763 endfunc
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
764
23584
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
765 func Test_pp_file()
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
766 filetype on
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
767
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
768 call writefile(['looks like puppet'], 'Xfile.pp')
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
769 split Xfile.pp
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
770 call assert_equal('puppet', &filetype)
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
771 bwipe!
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
772
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
773 let g:filetype_pp = 'pascal'
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
774 split Xfile.pp
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
775 call assert_equal('pascal', &filetype)
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
776 bwipe!
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
777
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
778 " Test dist#ft#FTpp()
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
779 call writefile(['{ pascal comment'], 'Xfile.pp')
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
780 split Xfile.pp
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
781 call assert_equal('pascal', &filetype)
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
782 bwipe!
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
783
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
784 call writefile(['procedure pascal'], 'Xfile.pp')
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
785 split Xfile.pp
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
786 call assert_equal('pascal', &filetype)
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
787 bwipe!
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
788
23636
334012f134f8 patch 8.2.2360: test leaves file behind
Bram Moolenaar <Bram@vim.org>
parents: 23622
diff changeset
789 call delete('Xfile.pp')
23584
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
790 filetype off
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
791 endfunc
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
792
21008
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
793
19425
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
794 " vim: shiftwidth=2 sts=2 expandtab