annotate src/testdir/test_filetype.vim @ 31796:e2fa5867a7bd v9.0.1230

patch 9.0.1230: Apache thrift files are not recognized Commit: https://github.com/vim/vim/commit/f3da4c8427b1b12d7aaffa307ec085ca97ea9ad9 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Sun Jan 22 18:16:44 2023 +0000 patch 9.0.1230: Apache thrift files are not recognized Problem: Apache thrift files are not recognized. Solution: Add a pattern for thrift files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/11859)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Jan 2023 19:30:04 +0100
parents 745772308c81
children a89903efd329
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
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
17 call writefile(['# some comment', 'must be conf'], 'Xconffile', 'D')
11459
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
30051
13b02c1ea0f7 patch 9.0.0363: common names in test files causes tests to be flaky
Bram Moolenaar <Bram@vim.org>
parents: 30023
diff changeset
21 split Xconffile
11459
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 filetype off
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 endfunc
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28 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
29 filetype on
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
30 augroup filetypedetect
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
31 au BufNewFile,BufRead * call assert_equal(0, did_filetype())
30051
13b02c1ea0f7 patch 9.0.0363: common names in test files causes tests to be flaky
Bram Moolenaar <Bram@vim.org>
parents: 30023
diff changeset
32 au BufNewFile,BufRead Xotherfile setf testfile
11459
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 * 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
34 augroup END
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
35 call writefile(['# some comment', 'must be conf'], 'Xotherfile', 'D')
30051
13b02c1ea0f7 patch 9.0.0363: common names in test files causes tests to be flaky
Bram Moolenaar <Bram@vim.org>
parents: 30023
diff changeset
36 split Xotherfile
11459
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
37 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
38
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
39 bwipe!
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
40 filetype off
561b76ed9d12 patch 8.0.0613: the conf filetype is used before ftdetect from packages
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
41 endfunc
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
42
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
43 " Filetypes detected just from matching the file name.
29463
27ebab59172e patch 9.0.0073: too many files recognized as bsdl
Bram Moolenaar <Bram@vim.org>
parents: 29427
diff changeset
44 " First one is checking that these files have no filetype.
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
45 let s:filename_checks = {
29463
27ebab59172e patch 9.0.0073: too many files recognized as bsdl
Bram Moolenaar <Bram@vim.org>
parents: 29427
diff changeset
46 \ 'none': ['bsd', 'some-bsd'],
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'],
25832
be15ebb4098c patch 8.2.3451: not all apache files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 25794
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', '/etc/httpd/mods-some/file', '/etc/httpd/sites-some/file', '/etc/httpd/conf.file/conf'],
22557
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'],
29714
1317743de840 patch 9.0.0197: astro files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29710
diff changeset
72 \ 'astro': ['file.astro'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
73 \ '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
74 \ '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
75 \ '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
76 \ '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
77 \ 'ave': ['file.ave'],
21817
c2c2e57562ee patch 8.2.1458: .gawk files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 21719
diff changeset
78 \ '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
79 \ 'b': ['file.mch', 'file.ref', 'file.imp'],
27287
9f72ec92d361 patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 27132
diff changeset
80 \ 'basic': ['file.bas', 'file.bi', 'file.bm'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
81 \ '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
82 \ 'bdf': ['file.bdf'],
23960
dbc6c893a67a patch 8.2.2522: Beancount filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23721
diff changeset
83 \ '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
84 \ 'bib': ['file.bib'],
27770
219471ed2fec patch 8.2.4411: bicep files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27653
diff changeset
85 \ 'bicep': ['file.bicep'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
86 \ 'bindzone': ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file'],
29427
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
87 \ 'bitbake': ['file.bb', 'file.bbappend', 'file.bbclass', 'build/conf/local.conf', 'meta/conf/layer.conf', 'build/conf/bbappend.conf', 'meta-layer/conf/distro/foo.conf'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
88 \ 'blank': ['file.bl'],
30215
40491de2f0a6 patch 9.0.0443: blueprint files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30196
diff changeset
89 \ 'blueprint': ['file.blp'],
29463
27ebab59172e patch 9.0.0073: too many files recognized as bsdl
Bram Moolenaar <Bram@vim.org>
parents: 29427
diff changeset
90 \ 'bsdl': ['file.bsd', 'file.bsdl'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
91 \ 'bst': ['file.bst'],
31718
bcedaa2fcb7b patch 9.0.1191: some Bazel files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31700
diff changeset
92 \ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
93 \ '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
94 \ '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
95 \ 'cabal': ['file.cabal'],
22971
f39f960f3ea0 patch 8.2.2032: cabalconfig and cabalproject filetypes not recognized
Bram Moolenaar <Bram@vim.org>
parents: 22918
diff changeset
96 \ 'cabalconfig': ['cabal.config'],
f39f960f3ea0 patch 8.2.2032: cabalconfig and cabalproject filetypes not recognized
Bram Moolenaar <Bram@vim.org>
parents: 22918
diff changeset
97 \ '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
98 \ 'calendar': ['calendar', '/.calendar/file', '/share/calendar/any/calendar.file', '/share/calendar/calendar.file', 'any/share/calendar/any/calendar.file', 'any/share/calendar/calendar.file'],
31794
745772308c81 patch 9.0.1229: Cap'n Proto files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31718
diff changeset
99 \ 'capnp': ['file.capnp'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
100 \ '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
101 \ '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
102 \ '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
103 \ '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
104 \ '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
105 \ 'cfengine': ['cfengine.conf'],
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
106 \ '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
107 \ '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
108 \ '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
109 \ 'chaskell': ['file.chs'],
30349
37a251ba4cf4 patch 9.0.0510: Chatito files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30322
diff changeset
110 \ 'chatito': ['file.chatito'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
111 \ '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
112 \ '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
113 \ '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
114 \ '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
115 \ '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
116 \ 'cmake': ['CMakeLists.txt', 'file.cmake', 'file.cmake.in'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
117 \ 'cmod': ['file.cmod'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
118 \ '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
119 \ '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
120 \ '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
121 \ 'conaryrecipe': ['file.recipe'],
29064
3fbc7462de59 patch 8.2.5054: no good filetype for conf files similar to dosini
Bram Moolenaar <Bram@vim.org>
parents: 28986
diff changeset
122 \ 'conf': ['auto.master'],
29397
7f5db9decf32 patch 9.0.0041: a couple of filetype patterns do not have "*" before "/etc"
Bram Moolenaar <Bram@vim.org>
parents: 29338
diff changeset
123 \ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file', 'any/etc/hostname.file'],
30960
6b03468f9cf7 patch 9.0.0814: aws config files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30948
diff changeset
124 \ 'confini': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials'],
22834
fcbded1e3602 patch 8.2.1964: not all ConTeXt files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 22673
diff changeset
125 \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
28393
860c2c6bcdfd patch 8.2.4721: cooklang files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28390
diff changeset
126 \ 'cook': ['file.cook'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
127 \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'],
31125
0100be942b82 patch 9.0.0897: Clinical Quality Language files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31016
diff changeset
128 \ 'cqlang': ['file.cql'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
129 \ '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
130 \ 'crontab': ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'],
26570
b1f4052d6c51 patch 8.2.3814: .csx files and .sln files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 26552
diff changeset
131 \ 'cs': ['file.cs', 'file.csx'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
132 \ '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
133 \ '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
134 \ '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
135 \ '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
136 \ 'cterm': ['file.con'],
29415
87174e9f7529 patch 9.0.0049: csv and tsv files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 29397
diff changeset
137 \ 'csv': ['file.csv'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
138 \ '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
139 \ '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
140 \ '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
141 \ '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
142 \ 'cvs': ['cvs123'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
143 \ 'cvsrc': ['.cvsrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
144 \ 'cynpp': ['file.cyn'],
27877
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
145 \ 'd': ['file.d'],
18366
c6826a74ad9b patch 8.1.2177: Dart files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 18362
diff changeset
146 \ '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
147 \ '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
148 \ '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
149 \ '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
150 \ '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
151 \ '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
152 \ '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
153 \ '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
154 \ '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
155 \ 'desc': ['file.desc'],
20804
ad15725594f8 patch 8.2.0954: not all desktop files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 20756
diff changeset
156 \ '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
157 \ 'dictconf': ['dict.conf', '.dictrc'],
25848
86c3af1be1db patch 8.2.3458: not all dictdconf files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 25834
diff changeset
158 \ 'dictdconf': ['dictd.conf', 'dictdfile.conf', 'dictd-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
159 \ '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
160 \ '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
161 \ 'dnsmasq': ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'],
28986
560793de4032 patch 8.2.5015: Hoon and Moonscript files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28954
diff changeset
162 \ 'dockerfile': ['Containerfile', 'Dockerfile', 'dockerfile', 'file.Dockerfile', 'file.dockerfile', 'Dockerfile.debian', 'Containerfile.something'],
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
163 \ 'dosbatch': ['file.bat'],
31669
4372b50e0a1d patch 9.0.1167: EditorConfig files do not have their own filetype
Bram Moolenaar <Bram@vim.org>
parents: 31575
diff changeset
164 \ 'dosini': ['/etc/yum.conf', 'file.ini', 'npmrc', '.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file', '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
165 \ '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
166 \ '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
167 \ 'dtd': ['file.dtd'],
27877
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
168 \ 'dtrace': ['/usr/lib/dtrace/io.d'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
169 \ '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
170 \ '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
171 \ '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
172 \ '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
173 \ '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
174 \ '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
175 \ 'edif': ['file.edf', 'file.edif', 'file.edo'],
31669
4372b50e0a1d patch 9.0.1167: EditorConfig files do not have their own filetype
Bram Moolenaar <Bram@vim.org>
parents: 31575
diff changeset
176 \ 'editorconfig': ['.editorconfig'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
177 \ 'eelixir': ['file.eex', 'file.leex'],
21018
2b07e2e7d95b patch 8.2.1060: not all elinks files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 21008
diff changeset
178 \ 'elinks': ['elinks.conf'],
25026
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
179 \ 'elixir': ['file.ex', 'file.exs', 'mix.lock'],
20579
6e6c98dc5732 patch 8.2.0843: filetype elm not detected
Bram Moolenaar <Bram@vim.org>
parents: 20361
diff changeset
180 \ '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
181 \ 'elmfilt': ['filter-rules'],
28277
4e2753f7ec65 patch 8.2.4664: Elvish files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28265
diff changeset
182 \ 'elvish': ['file.elv'],
23721
002fd1de0968 patch 8.2.2402: some filetypes not detected
Bram Moolenaar <Bram@vim.org>
parents: 23701
diff changeset
183 \ '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
184 \ '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
185 \ '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
186 \ '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
187 \ '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
188 \ '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
189 \ '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
190 \ '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
191 \ '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
192 \ 'exports': ['exports'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
193 \ '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
194 \ '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
195 \ 'fan': ['file.fan', 'file.fwt'],
23701
c5b5e7520fe2 patch 8.2.2392: fennel filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23685
diff changeset
196 \ '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
197 \ 'fetchmail': ['.fetchmailrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
198 \ 'fgl': ['file.4gl', 'file.4gh', 'file.m4gl'],
26141
77ad8ea01c00 patch 8.2.3603: fish filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 26133
diff changeset
199 \ 'fish': ['file.fish'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
200 \ 'focexec': ['file.fex', 'file.focexec'],
27493
3af3dee7e5d9 patch 8.2.4274: Basic and form filetype detection is incomplete
Bram Moolenaar <Bram@vim.org>
parents: 27445
diff changeset
201 \ 'form': ['file.frm'],
26311
ce3678583211 patch 8.2.3686: filetype detection often mixes up Forth and F#
Bram Moolenaar <Bram@vim.org>
parents: 26309
diff changeset
202 \ 'forth': ['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
203 \ '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
204 \ '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
205 \ 'framescript': ['file.fsl'],
27287
9f72ec92d361 patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 27132
diff changeset
206 \ 'freebasic': ['file.fb'],
31515
7f3f8543611e patch 9.0.1090: FHIR Shorthand files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31499
diff changeset
207 \ 'fsh': ['file.fsh'],
26344
36f3a77e4b8c patch 8.2.3703: most people call F# "fsharp" and not "fs"
Bram Moolenaar <Bram@vim.org>
parents: 26311
diff changeset
208 \ 'fsharp': ['file.fs', 'file.fsi', 'file.fsx'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
209 \ 'fstab': ['fstab', 'mtab'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
210 \ 'fusion': ['file.fusion'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
211 \ 'fvwm': ['/.fvwm/file', 'any/.fvwm/file'],
28093
3fd6b3ebe0b7 patch 8.2.4571: not all gdb files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 27883
diff changeset
212 \ 'gdb': ['.gdbinit', 'gdbinit', 'file.gdb', '.config/gdbearlyinit', '.gdbearlyinit'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
213 \ 'gdmo': ['file.mo', 'file.gdmo'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
214 \ 'gdresource': ['file.tscn', 'file.tres'],
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
215 \ 'gdscript': ['file.gd'],
29962
32e35a6d4292 patch 9.0.0319: Godot shader files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 29952
diff changeset
216 \ 'gdshader': ['file.gdshader', 'file.shader'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
217 \ 'gedcom': ['file.ged', 'lltxxxxx.txt', '/tmp/lltmp', '/tmp/lltmp-file', 'any/tmp/lltmp', 'any/tmp/lltmp-file'],
25100
d5f856033f6b patch 8.2.3087: Gemtext files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25096
diff changeset
218 \ 'gemtext': ['file.gmi', 'file.gemini'],
23316
32cc5e9875bb patch 8.2.2203: Moodle gift files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23132
diff changeset
219 \ 'gift': ['file.gift'],
30176
042513ec99d7 patch 9.0.0424: gitattributes files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30162
diff changeset
220 \ 'gitattributes': ['file.git/info/attributes', '.gitattributes', '/.config/git/attributes', '/etc/gitattributes', '/usr/local/etc/gitattributes', 'some.git/info/attributes'],
26970
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
221 \ 'gitcommit': ['COMMIT_EDITMSG', 'MERGE_MSG', 'TAG_EDITMSG', 'NOTES_EDITMSG', 'EDIT_DESCRIPTION'],
29397
7f5db9decf32 patch 9.0.0041: a couple of filetype patterns do not have "*" before "/etc"
Bram Moolenaar <Bram@vim.org>
parents: 29338
diff changeset
222 \ 'gitconfig': ['file.git/config', 'file.git/config.worktree', 'file.git/worktrees/x/config.worktree', '.gitconfig', '.gitmodules', 'file.git/modules//config', '/.config/git/config', '/etc/gitconfig', '/usr/local/etc/gitconfig', '/etc/gitconfig.d/file', 'any/etc/gitconfig.d/file', '/.gitconfig.d/file', 'any/.config/git/config', 'any/.gitconfig.d/file', 'some.git/config', 'some.git/modules/any/config'],
30196
381462ee23fd patch 9.0.0434: gitignore files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30182
diff changeset
223 \ 'gitignore': ['file.git/info/exclude', '.gitignore', '/.config/git/ignore', 'some.git/info/exclude'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
224 \ '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
225 \ '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
226 \ 'gitsendemail': ['.gitsendemail.msg.xxxxxx'],
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
227 \ 'gkrellmrc': ['gkrellmrc', 'gkrellmrc_x'],
28650
be4410fa2bac patch 8.2.4849: Gleam filetype not detected
Bram Moolenaar <Bram@vim.org>
parents: 28604
diff changeset
228 \ 'gleam': ['file.gleam'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
229 \ 'glsl': ['file.glsl'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
230 \ 'gnash': ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'],
27317
839be955609f patch 8.2.4187: gnuplot file not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27287
diff changeset
231 \ 'gnuplot': ['file.gpi', '.gnuplot'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
232 \ 'go': ['file.go'],
26688
4b8d0a62f78b patch 8.2.3873: go.mod files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 26628
diff changeset
233 \ 'gomod': ['go.mod'],
31700
9c496513d57c patch 9.0.1182: go checksum files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31688
diff changeset
234 \ 'gosum': ['go.sum'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
235 \ 'gowork': ['go.work'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
236 \ '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
237 \ '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
238 \ 'grads': ['file.gs'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
239 \ 'graphql': ['file.graphql', 'file.graphqls', 'file.gql'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
240 \ '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
241 \ '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
242 \ '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
243 \ '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
244 \ '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
245 \ 'gtkrc': ['.gtkrc', 'gtkrc', '.gtkrc-file', 'gtkrc-file'],
30529
09b3221423e9 patch 9.0.0600: GYP files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30527
diff changeset
246 \ 'gyp': ['file.gyp', 'file.gypi'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
247 \ 'hack': ['file.hack', 'file.hackpartial'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
248 \ 'haml': ['file.haml'],
22989
7160e85d62ff patch 8.2.2041: haskell filetype not optimally recognized
Bram Moolenaar <Bram@vim.org>
parents: 22971
diff changeset
249 \ 'hamster': ['file.hsm'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
250 \ 'handlebars': ['file.hbs'],
29324
71f2af5d8447 patch 9.0.0005: hare files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 29181
diff changeset
251 \ 'hare': ['file.ha'],
24681
1077a2762d06 patch 8.2.2879: file extension .hsig not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24598
diff changeset
252 \ 'haskell': ['file.hs', 'file.hsc', 'file.hs-boot', 'file.hsig'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
253 \ '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
254 \ '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
255 \ 'hb': ['file.hb'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
256 \ 'hcl': ['file.hcl'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
257 \ 'heex': ['file.heex'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
258 \ '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
259 \ '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
260 \ 'hgcommit': ['hg-editor-file.txt'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
261 \ 'hjson': ['file.hjson'],
30495
94d484e60434 patch 9.0.0583: only recognizing .m3u8 files is inconsistent
Bram Moolenaar <Bram@vim.org>
parents: 30461
diff changeset
262 \ 'hlsplaylist': ['file.m3u', 'file.m3u8'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
263 \ '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
264 \ 'hollywood': ['file.hws'],
28986
560793de4032 patch 8.2.5015: Hoon and Moonscript files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28954
diff changeset
265 \ 'hoon': ['file.hoon'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
266 \ '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
267 \ 'hostsaccess': ['/etc/hosts.allow', '/etc/hosts.deny', 'any/etc/hosts.allow', 'any/etc/hosts.deny'],
28604
9c70f7df6d61 patch 8.2.4826: .cshtml files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28538
diff changeset
268 \ 'html': ['file.html', 'file.htm', 'file.cshtml'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
269 \ '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
270 \ 'httest': ['file.htt', 'file.htb'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
271 \ 'i3config': ['/home/user/.i3/config', '/home/user/.config/i3/config', '/etc/i3/config', '/etc/xdg/i3/config'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
272 \ '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
273 \ '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
274 \ '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
275 \ '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
276 \ '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
277 \ '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
278 \ 'inittab': ['inittab'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
279 \ '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
280 \ '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
281 \ '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
282 \ '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
283 \ '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
284 \ '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
285 \ '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
286 \ 'javacc': ['file.jj', 'file.jjt'],
30132
01919e5a070c patch 9.0.0402: javascript module files are not recoginzed
Bram Moolenaar <Bram@vim.org>
parents: 30051
diff changeset
287 \ 'javascript': ['file.js', 'file.jsm', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs'],
27796
8fdc92bdcff1 patch 8.2.4424: ".gts" and ".gjs" files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27776
diff changeset
288 \ 'javascript.glimmer': ['file.gjs'],
17867
180fb9981255 patch 8.1.1930: cannot recognize .jsx and .tsx files
Bram Moolenaar <Bram@vim.org>
parents: 17555
diff changeset
289 \ '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
290 \ '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
291 \ 'jgraph': ['file.jgr'],
31541
f2da18e495aa patch 9.0.1103: jq files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31515
diff changeset
292 \ 'jq': ['file.jq'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
293 \ 'jovial': ['file.jov', 'file.j73', 'file.jovial'],
31237
5bdf73161e65 patch 9.0.0952: Eclipse preference files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31217
diff changeset
294 \ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file', 'org.eclipse.xyz.prefs'],
31499
16174b7435a0 patch 9.0.1082: some jsonc files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31449
diff changeset
295 \ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.prettierrc', '.firebaserc', 'file.slnf'],
27326
234516a43f33 patch 8.2.4191: json5 files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27319
diff changeset
296 \ 'json5': ['file.json5'],
31499
16174b7435a0 patch 9.0.1082: some jsonc files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31449
diff changeset
297 \ 'jsonc': ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json'],
30948
cdb345a925d0 patch 9.0.0808: jsonnet filetype detection has a typo
Bram Moolenaar <Bram@vim.org>
parents: 30928
diff changeset
298 \ 'jsonnet': ['file.jsonnet', 'file.libsonnet'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
299 \ 'jsp': ['file.jsp'],
25493
224c96c497d3 patch 8.2.3283: Julia filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25100
diff changeset
300 \ 'julia': ['file.jl'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
301 \ '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
302 \ '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
303 \ 'kix': ['file.kix'],
19263
06d9be5c0107 patch 8.2.0190: Kotlin files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 19205
diff changeset
304 \ 'kotlin': ['file.kt', 'file.ktm', 'file.kts'],
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
305 \ 'krl': ['file.sub', 'file.Sub', 'file.SUB'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
306 \ '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
307 \ '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
308 \ '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
309 \ '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
310 \ '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
311 \ 'ldif': ['file.ldif'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
312 \ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
313 \ '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
314 \ '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
315 \ '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
316 \ '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
317 \ '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
318 \ '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
319 \ 'lilo': ['lilo.conf', 'lilo.conf-file'],
28532
11387538e7c4 patch 8.2.4790: lilypond filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28513
diff changeset
320 \ 'lilypond': ['file.ly', 'file.ily'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
321 \ '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
322 \ 'liquid': ['file.liquid'],
26871
c8d32e12c934 patch 8.2.3964: some common lisp and scheme files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 26761
diff changeset
323 \ 'lisp': ['file.lsp', 'file.lisp', 'file.asd', '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
324 \ '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
325 \ 'litestep': ['/LiteStep/any/file.rc', 'any/LiteStep/any/file.rc'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
326 \ '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'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
327 \ '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
328 \ '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
329 \ '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
330 \ '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
331 \ 'lout': ['file.lou', 'file.lout'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
332 \ 'lpc': ['file.lpc', 'file.ulpc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
333 \ '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
334 \ 'lss': ['file.lss'],
30537
720ac162fbd6 patch 9.0.0604: luacheckrc file is not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30533
diff changeset
335 \ 'lua': ['file.lua', 'file.rockspec', 'file.nse', '.luacheckrc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
336 \ 'lynx': ['lynx.cfg'],
30322
2f79b10e82d1 patch 9.0.0497: LyRiCs files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30287
diff changeset
337 \ 'lyrics': ['file.lrc'],
24458
1d126cb683c1 patch 8.2.2769: Modula-3 config files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24347
diff changeset
338 \ 'm3build': ['m3makefile', 'm3overrides'],
1d126cb683c1 patch 8.2.2769: Modula-3 config files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24347
diff changeset
339 \ '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
340 \ '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
341 \ '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
342 \ '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
343 \ '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
344 \ '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
345 \ '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
346 \ '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
347 \ '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
348 \ '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
349 \ '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
350 \ '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
351 \ '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
352 \ 'master': ['file.mas', 'file.master'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
353 \ 'matlab': ['file.m'],
28538
48712267f57b patch 8.2.4793: recognizing Maxima filetype even though it might be another
Bram Moolenaar <Bram@vim.org>
parents: 28532
diff changeset
354 \ 'maxima': ['file.demo', 'file.dmt', 'file.dm1', 'file.dm2', 'file.dm3',
28513
6a1e5b188374 patch 8.2.4781: Maxima files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28507
diff changeset
355 \ 'file.wxm', 'maxima-init.mac'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
356 \ 'mel': ['file.mel'],
31176
0795700291ae patch 9.0.0922: Mermaid files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31125
diff changeset
357 \ 'mermaid': ['file.mmd', 'file.mmdc', 'file.mermaid'],
18362
8144f89e6f28 patch 8.1.2175: meson files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 17867
diff changeset
358 \ '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
359 \ '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
360 \ '/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
361 \ '/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
362 \ '/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
363 \ '/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
364 \ '/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
365 \ '/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
366 \ '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
367 \ '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
368 \ '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
369 \ '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
370 \ '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
371 \ '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
372 \ '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
373 \ '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
374 \ 'modula2': ['file.m2', 'file.mi'],
30890
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
375 \ 'modula3': ['file.m3', 'file.mg', 'file.i3', 'file.ig', 'file.lm3'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
376 \ '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
377 \ 'moo': ['file.moo'],
28986
560793de4032 patch 8.2.5015: Hoon and Moonscript files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28954
diff changeset
378 \ 'moonscript': ['file.moon'],
29710
0edbf9b01c42 patch 9.0.0195: metafun files are not recogized
Bram Moolenaar <Bram@vim.org>
parents: 29684
diff changeset
379 \ 'mp': ['file.mp', 'file.mpxl', 'file.mpiv', 'file.mpvi'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
380 \ '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
381 \ '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
382 \ '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
383 \ '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
384 \ '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
385 \ 'mush': ['file.mush'],
26398
34548fb19e0e patch 8.2.3730: "/etc/Muttrc.d/README" gets filetype muttrc
Bram Moolenaar <Bram@vim.org>
parents: 26396
diff changeset
386 \ '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', '/etc/Muttrc.d/file.rc', '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
387 \ 'mysql': ['file.mysql'],
12052
7eb512f2a896 patch 8.0.0906: don't recognize Couchbase files
Christian Brabandt <cb@256bit.org>
parents: 12029
diff changeset
388 \ '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
389 \ '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
390 \ 'nanorc': ['/etc/nanorc', 'file.nanorc', 'any/etc/nanorc'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
391 \ 'natural': ['file.NSA', 'file.NSC', 'file.NSG', 'file.NSL', 'file.NSM', 'file.NSN', 'file.NSP', 'file.NSS'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
392 \ 'ncf': ['file.ncf'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
393 \ 'neomuttrc': ['Neomuttrc', '.neomuttrc', '.neomuttrc-file', '/.neomutt/neomuttrc', '/.neomutt/neomuttrc-file', 'Neomuttrc', 'Neomuttrc-file', 'any/.neomutt/neomuttrc', 'any/.neomutt/neomuttrc-file', 'neomuttrc', 'neomuttrc-file'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
394 \ 'netrc': ['.netrc'],
25860
a7305a9b32ba patch 8.2.3464: nginx files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25848
diff changeset
395 \ 'nginx': ['file.nginx', 'nginxfile.conf', 'filenginx.conf', 'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'],
30461
0b8d532e124d patch 9.0.0566: Nim files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30453
diff changeset
396 \ 'nim': ['file.nim', 'file.nims', 'file.nimble'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
397 \ 'ninja': ['file.ninja'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
398 \ 'nix': ['file.nix'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
399 \ '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
400 \ '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
401 \ '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
402 \ 'obj': ['file.obj'],
31196
48e44371a9ff patch 9.0.0932: Oblivion files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31176
diff changeset
403 \ 'obse': ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'],
23430
9e60204aea6e patch 8.2.2258: not all OCaml related files are detected
Bram Moolenaar <Bram@vim.org>
parents: 23316
diff changeset
404 \ '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
405 \ 'occam': ['file.occ'],
25727
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
406 \ 'octave': ['octaverc', '.octaverc', 'octave.conf'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
407 \ '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
408 \ '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
409 \ 'openroad': ['file.or'],
28485
75f181bef230 patch 8.2.4767: openscad files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28483
diff changeset
410 \ 'openscad': ['file.scad'],
30896
87d9843b59db patch 9.0.0782: OpenVPN files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30890
diff changeset
411 \ 'openvpn': ['file.ovpn', '/etc/openvpn/client/client.conf', '/usr/share/openvpn/examples/server.conf'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
412 \ 'opl': ['file.OPL', 'file.OPl', 'file.OpL', 'file.Opl', 'file.oPL', 'file.oPl', 'file.opL', 'file.opl'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
413 \ 'ora': ['file.ora'],
28265
67ef250562e5 patch 8.2.4658: org-mode files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28093
diff changeset
414 \ 'org': ['file.org', 'file.org_archive'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
415 \ '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
416 \ '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
417 \ '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
418 \ '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
419 \ '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
420 \ '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
421 \ 'pccts': ['file.g'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
422 \ 'pcmk': ['file.pcmk'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
423 \ 'pdf': ['file.pdf'],
30527
5b7e094fddd7 patch 9.0.0599: latexmkrc files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30495
diff changeset
424 \ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc', '.latexmkrc', 'latexmkrc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
425 \ 'pf': ['pf.conf'],
31547
a48b559cdfc4 patch 9.0.1106: not all postfix files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 31541
diff changeset
426 \ 'pfmain': ['main.cf', 'main.cf.proto'],
30182
4d3c7b4927f2 patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30176
diff changeset
427 \ 'php': ['file.php', 'file.php9', 'file.phtml', 'file.ctp', 'file.phpt', 'file.theme'],
13128
41b7a660ed2a patch 8.0.1438: filetype detection test not updated for change
Christian Brabandt <cb@256bit.org>
parents: 12688
diff changeset
428 \ 'pike': ['file.pike', 'file.pmod'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
429 \ '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
430 \ '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
431 \ '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
432 \ '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
433 \ '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
434 \ '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
435 \ '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
436 \ '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
437 \ 'pod': ['file.pod'],
30715
316844a05a8b patch 9.0.0692: PoE filter files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30572
diff changeset
438 \ 'poefilter': ['file.filter'],
24099
209caadb403f patch 8.2.2591: Poke files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23962
diff changeset
439 \ '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
440 \ '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
441 \ '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
442 \ 'povini': ['.povrayrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
443 \ '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
444 \ 'ppwiz': ['file.it', 'file.ih'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
445 \ 'prisma': ['file.prisma'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
446 \ '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
447 \ '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
448 \ '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
449 \ '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
450 \ '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
451 \ '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
452 \ '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
453 \ '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
454 \ '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
455 \ 'psf': ['file.psf'],
24466
f5a6a6e98ec4 patch 8.2.2773: PSL filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 24458
diff changeset
456 \ 'psl': ['file.psl'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
457 \ 'pug': ['file.pug'],
23584
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
458 \ 'puppet': ['file.pp'],
25676
0385bd4411b7 patch 8.2.3374: Pyret files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25664
diff changeset
459 \ 'pyret': ['file.arr'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
460 \ '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
461 \ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
462 \ 'ql': ['file.ql', 'file.qll'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
463 \ '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'],
29684
d6c90b936159 patch 9.0.0182: quarto files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 29503
diff changeset
464 \ 'quarto': ['file.qmd'],
30835
93d8f81b8610 patch 9.0.0752: Rprofile files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30793
diff changeset
465 \ 'r': ['file.r', '.Rprofile', 'Rprofile', 'Rprofile.site'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
466 \ '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
467 \ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
468 \ '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
469 \ 'ratpoison': ['.ratpoisonrc', 'ratpoisonrc'],
23721
002fd1de0968 patch 8.2.2402: some filetypes not detected
Bram Moolenaar <Bram@vim.org>
parents: 23701
diff changeset
470 \ '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
471 \ '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
472 \ '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
473 \ 'readline': ['.inputrc', 'inputrc'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
474 \ 'rego': ['file.rego'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
475 \ 'remind': ['.reminders', 'file.remind', 'file.rem', '.reminders-file'],
27653
52bbe3590f50 patch 8.2.4352: ReScript files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27559
diff changeset
476 \ 'rescript': ['file.res', 'file.resi'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
477 \ '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
478 \ '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
479 \ 'rexx': ['file.rex', 'file.orx', 'file.rxo', 'file.rxj', 'file.jrexx', 'file.rexxj', 'file.rexx', 'file.testGroup', 'file.testUnit'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
480 \ 'rhelp': ['file.rd'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
481 \ 'rib': ['file.rib'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
482 \ 'rmd': ['file.rmd', 'file.smd'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
483 \ '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
484 \ 'rng': ['file.rng'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
485 \ 'rnoweb': ['file.rnw', 'file.snw'],
28662
dfe200e3d315 patch 8.2.4855: robot files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28650
diff changeset
486 \ 'robot': ['file.robot', 'file.resource'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
487 \ 'robots': ['robots.txt'],
26131
87d8f52d3821 patch 8.2.3598: RouterOS filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25971
diff changeset
488 \ 'routeros': ['file.rsc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
489 \ '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
490 \ 'rpl': ['file.rpl'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
491 \ 'rrst': ['file.rrst', 'file.srst'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
492 \ '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
493 \ 'rtf': ['file.rtf'],
28380
90d43a367955 patch 8.2.4715: Vagrantfile not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28377
diff changeset
494 \ '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', 'Vagrantfile'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
495 \ '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
496 \ '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
497 \ '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
498 \ '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
499 \ '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
500 \ 'sbt': ['file.sbt'],
28443
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
501 \ 'scala': ['file.scala'],
26871
c8d32e12c934 patch 8.2.3964: some common lisp and scheme files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 26761
diff changeset
502 \ 'scheme': ['file.scm', 'file.ss', 'file.sld', 'file.rkt', 'file.rktd', 'file.rktl'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
503 \ '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
504 \ 'screen': ['.screenrc', 'screenrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
505 \ '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
506 \ '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
507 \ '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
508 \ '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
509 \ 'sed': ['file.sed'],
27096
d539c144aeb4 patch 8.2.4077: not all Libsensors files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 27070
diff changeset
510 \ 'sensors': ['/etc/sensors.conf', '/etc/sensors3.conf', '/etc/sensors.d/file', 'any/etc/sensors.conf', 'any/etc/sensors3.conf', 'any/etc/sensors.d/file'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
511 \ '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
512 \ 'setserial': ['/etc/serial.conf', 'any/etc/serial.conf'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
513 \ 'sexplib': ['file.sexp'],
24347
1df930301857 patch 8.2.2714: filetype pattern ending in star is too far up
Bram Moolenaar <Bram@vim.org>
parents: 24299
diff changeset
514 \ '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
515 \ 'sieve': ['file.siv', 'file.sieve'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
516 \ 'sil': ['file.sil'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
517 \ '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
518 \ '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
519 \ '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
520 \ '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
521 \ '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
522 \ '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
523 \ '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
524 \ '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
525 \ '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
526 \ 'slrnrc': ['.slrnrc'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
527 \ '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
528 \ 'sm': ['sendmail.cf'],
31684
8153d73088f2 patch 9.0.1174: smali files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31669
diff changeset
529 \ 'smali': ['file.smali'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
530 \ '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
531 \ '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
532 \ 'smith': ['file.smt', 'file.smith'],
31688
ead5a3f43a4c patch 9.0.1176: smithy files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31684
diff changeset
533 \ 'smithy': ['file.smithy'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
534 \ '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
535 \ 'snobol4': ['file.sno', 'file.spt'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
536 \ 'solidity': ['file.sol'],
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
537 \ 'solution': ['file.sln'],
23622
53cbcc2d2234 patch 8.2.2353: spartql files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 23584
diff changeset
538 \ '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
539 \ '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
540 \ '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
541 \ '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
542 \ '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
543 \ '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
544 \ '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
545 \ '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
546 \ 'squid': ['squid.conf'],
26396
f4e6431ca146 patch 8.2.3729: no support for squirrels
Bram Moolenaar <Bram@vim.org>
parents: 26390
diff changeset
547 \ 'squirrel': ['file.nut'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
548 \ 'srec': ['file.s19', 'file.s28', 'file.s37', 'file.mot', 'file.srec'],
30224
1fbc86e18258 patch 9.0.0448: SubRip files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30215
diff changeset
549 \ 'srt': ['file.srt'],
30753
b6b326671396 patch 9.0.0711: SubStation Alpha files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30715
diff changeset
550 \ 'ssa': ['file.ass', 'file.ssa'],
26933
959f943e6dd1 patch 8.2.3995: not all sshconfig files are detected as such
Bram Moolenaar <Bram@vim.org>
parents: 26871
diff changeset
551 \ 'sshconfig': ['ssh_config', '/.ssh/config', '/etc/ssh/ssh_config.d/file.conf', 'any/etc/ssh/ssh_config.d/file.conf', 'any/.ssh/config', 'any/.ssh/file.conf'],
20749
dae1811e84dd patch 8.2.0927: some sshconfig and ssdhconfig files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 20639
diff changeset
552 \ '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
553 \ '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
554 \ '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
555 \ 'stp': ['file.stp'],
26143
741cb243a7d2 patch 8.2.3604: not all sudoers files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 26141
diff changeset
556 \ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp', '/etc/sudoers', 'any/etc/sudoers.d/file'],
30182
4d3c7b4927f2 patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30176
diff changeset
557 \ 'supercollider': ['file.quark'],
28417
bca485676073 patch 8.2.4733: HEEx and Surface do need a separate filetype
Bram Moolenaar <Bram@vim.org>
parents: 28409
diff changeset
558 \ 'surface': ['file.sface'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
559 \ 'svelte': ['file.svelte'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
560 \ '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
561 \ 'svn': ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'],
29503
e6e18c0a1694 patch 9.0.0093: sway config files are recognized as i3config
Bram Moolenaar <Bram@vim.org>
parents: 29493
diff changeset
562 \ 'swayconfig': ['/home/user/.sway/config', '/home/user/.config/sway/config', '/etc/sway/config', '/etc/xdg/sway/config'],
19164
bfe90421e223 patch 8.2.0141: no swift filetype detection
Bram Moolenaar <Bram@vim.org>
parents: 18926
diff changeset
563 \ 'swift': ['file.swift'],
bfe90421e223 patch 8.2.0141: no swift filetype detection
Bram Moolenaar <Bram@vim.org>
parents: 18926
diff changeset
564 \ 'swiftgyb': ['file.swift.gyb'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
565 \ '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
566 \ '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
567 \ '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
568 \ 'tags': ['tags'],
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
569 \ '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
570 \ '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
571 \ 'taskedit': ['file.task'],
25878
f88641e6996c patch 8.2.3473: some files with tcl syntax are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25870
diff changeset
572 \ 'tcl': ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
573 \ 'teal': ['file.tl'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
574 \ '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
575 \ '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
576 \ 'terminfo': ['file.ti'],
29485
7355529ee87f patch 9.0.0084: using "terraform" filetype for .tfvars file is bad
Bram Moolenaar <Bram@vim.org>
parents: 29463
diff changeset
577 \ 'terraform-vars': ['file.tfvars'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
578 \ '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
579 \ '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
580 \ 'texmf': ['texmf.cnf'],
26478
dd09291cf1ac patch 8.2.3769: zig files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 26398
diff changeset
581 \ 'text': ['file.text', 'file.txt', 'README', 'LICENSE', 'COPYING', 'AUTHORS', '/usr/share/doc/bash-completion/AUTHORS', '/etc/apt/apt.conf.d/README', '/etc/Muttrc.d/README'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
582 \ 'tf': ['file.tf', '.tfrc', 'tfrc'],
31796
e2fa5867a7bd patch 9.0.1230: Apache thrift files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31794
diff changeset
583 \ 'thrift': ['file.thrift'],
22353
889143dbe2cd patch 8.2.1725: not all Pascal files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 22033
diff changeset
584 \ '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
585 \ 'tilde': ['file.t.html'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
586 \ 'tla': ['file.tla'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
587 \ 'tli': ['file.tli'],
25935
c90b8e41b10e patch 8.2.3501: tmux filetype dection is incomplete
Bram Moolenaar <Bram@vim.org>
parents: 25915
diff changeset
588 \ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf', 'tmux.conf.local'],
25971
217cd7833e8b patch 8.2.3519: TOML files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25935
diff changeset
589 \ 'toml': ['file.toml', 'Gopkg.lock', 'Pipfile', '/home/user/.cargo/config'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
590 \ '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
591 \ '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
592 \ '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
593 \ '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
594 \ '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
595 \ '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
596 \ 'tssop': ['file.tssop'],
29415
87174e9f7529 patch 9.0.0049: csv and tsv files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 29397
diff changeset
597 \ 'tsv': ['file.tsv'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
598 \ 'twig': ['file.twig'],
30533
4f6c0ca7530b patch 9.0.0602: new TypeScript extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30529
diff changeset
599 \ 'typescript': ['file.mts', 'file.cts'],
27796
8fdc92bdcff1 patch 8.2.4424: ".gts" and ".gjs" files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27776
diff changeset
600 \ 'typescript.glimmer': ['file.gts'],
17867
180fb9981255 patch 8.1.1930: cannot recognize .jsx and .tsx files
Bram Moolenaar <Bram@vim.org>
parents: 17555
diff changeset
601 \ '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
602 \ '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
603 \ '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
604 \ '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
605 \ '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
606 \ '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
607 \ '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
608 \ '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
609 \ '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
610 \ '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
611 \ '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
612 \ '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
613 \ 'usw2kagtlog': ['usw2kagt.log', 'USW2KAGT.LOG', 'usw2kagt.file.log', 'USW2KAGT.FILE.LOG', 'file.usw2kagt.log', 'FILE.USW2KAGT.LOG'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
614 \ 'vala': ['file.vala'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
615 \ 'vb': ['file.sba', 'file.vb', 'file.vbs', 'file.dsm', 'file.ctl'],
30287
8730f0f77e00 patch 9.0.0479: in :def function all closures in loop get the same variables
Bram Moolenaar <Bram@vim.org>
parents: 30224
diff changeset
616 \ 'vdf': ['file.vdf'],
29952
eba6020b286a patch 9.0.0314: VDM files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 29714
diff changeset
617 \ 'vdmpp': ['file.vpp', 'file.vdmpp'],
eba6020b286a patch 9.0.0314: VDM files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 29714
diff changeset
618 \ 'vdmrt': ['file.vdmrt'],
eba6020b286a patch 9.0.0314: VDM files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 29714
diff changeset
619 \ 'vdmsl': ['file.vdm', 'file.vdmsl'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
620 \ '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
621 \ '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
622 \ '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
623 \ '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
624 \ 'vhdl': ['file.hdl', 'file.vhd', 'file.vhdl', 'file.vbe', 'file.vst', 'file.vhdl_123', 'file.vho', 'some.vhdl_1', 'some.vhdl_1-file'],
31016
f825a2646cc0 patch 9.0.0843: VHS tape files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30960
diff changeset
625 \ 'vhs': ['file.tape'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
626 \ '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
627 \ '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
628 \ '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
629 \ '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
630 \ '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
631 \ '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
632 \ 'vue': ['file.vue'],
14946
8ca1dc213836 patch 8.1.0484: some file types are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 13182
diff changeset
633 \ 'wast': ['file.wast', 'file.wat'],
31217
e651c7a29c87 patch 9.0.0942: Workflow Description Language files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31203
diff changeset
634 \ 'wdl': ['file.wdl'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
635 \ '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
636 \ 'wget': ['.wgetrc', 'wgetrc'],
28670
239bd331e0a9 patch 8.2.4859: wget2 files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28662
diff changeset
637 \ 'wget2': ['.wget2rc', 'wget2rc'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
638 \ '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
639 \ '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
640 \ '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
641 \ '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
642 \ '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
643 \ 'xdefaults': ['.Xdefaults', '.Xpdefaults', '.Xresources', 'xdm-config', 'file.ad', '/Xresources/file', '/app-defaults/file', 'Xresources', 'Xresources-file', 'any/Xresources/file', 'any/app-defaults/file'],
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
644 \ 'xf86conf': ['xorg.conf', 'xorg.conf-4'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
645 \ '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
646 \ '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
647 \ 'xmath': ['file.msc', 'file.msf'],
26309
270ac1efc93b patch 8.2.3685: Visual studio project files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 26296
diff changeset
648 \ 'xml': ['/etc/blkid.tab', '/etc/blkid.tab.old', 'file.xmi', 'file.csproj', 'file.csproj.user', 'file.fsproj', 'file.fsproj.user', 'file.vbproj', 'file.vbproj.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', 'file.mpd'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
649 \ 'xmodmap': ['anyXmodmap', 'Xmodmap', 'some-Xmodmap', 'some-xmodmap', 'some-xmodmap-file', 'xmodmap', 'xmodmap-file'],
25915
36f2c43bd671 patch 8.2.3491: xpm2 filetype dection is not so good
Bram Moolenaar <Bram@vim.org>
parents: 25878
diff changeset
650 \ 'xpm': ['file.xpm'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
651 \ '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
652 \ '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
653 \ '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
654 \ '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
655 \ '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
656 \ 'yacc': ['file.yy', 'file.yxx', 'file.y++'],
30928
fa68adeca7c1 patch 9.0.0798: clang format configuration files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30896
diff changeset
657 \ 'yaml': ['file.yaml', 'file.yml', '.clang-format', '.clang-tidy'],
27336
9ef98290c41a patch 8.2.4196: various file types not recognized
Bram Moolenaar <Bram@vim.org>
parents: 27326
diff changeset
658 \ 'yang': ['file.yang'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
659 \ 'z8a': ['file.z8a'],
26478
dd09291cf1ac patch 8.2.3769: zig files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 26398
diff changeset
660 \ 'zig': ['file.zig'],
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
661 \ '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
662 \ 'zimbutempl': ['file.zut'],
31361
abb9d25924d8 patch 9.0.1014: zir files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 31237
diff changeset
663 \ 'zir': ['file.zir'],
22557
d16f9bd12b82 patch 8.2.1827: filetype detection does not test enough file names
Bram Moolenaar <Bram@vim.org>
parents: 22462
diff changeset
664 \ '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
665 \
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
666 \ '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
667 \ }
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
668
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
669 let s:filename_case_checks = {
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
670 \ 'modula2': ['file.DEF'],
22033
cdf95988615a patch 8.2.1566: not all Bazel files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 21849
diff changeset
671 \ '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
672 \ }
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
673
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
674 func CheckItems(checks)
22673
67aa7507ea2e patch 8.2.1885: filetype tests unnessarily creates swap files
Bram Moolenaar <Bram@vim.org>
parents: 22557
diff changeset
675 set noswapfile
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
676 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
677 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
678 new
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
679 try
17528
62a6d99082f7 patch 8.1.1762: some filetype rules are in the wrong place
Bram Moolenaar <Bram@vim.org>
parents: 17526
diff changeset
680 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
681 catch
17555
c2eb5118ba89 patch 8.1.1775: error message may be empty in filetype test
Bram Moolenaar <Bram@vim.org>
parents: 17528
diff changeset
682 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
683 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
684 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
685 " 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
686 else
29463
27ebab59172e patch 9.0.0073: too many files recognized as bsdl
Bram Moolenaar <Bram@vim.org>
parents: 29427
diff changeset
687 let expected = ft == 'none' ? '' : ft
27ebab59172e patch 9.0.0073: too many files recognized as bsdl
Bram Moolenaar <Bram@vim.org>
parents: 29427
diff changeset
688 call assert_equal(expected, &filetype, 'with file name: ' . names[i])
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
689 endif
12027
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
690 bwipe!
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
691 endfor
c2aa4af29251 patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents: 11459
diff changeset
692 endfor
22673
67aa7507ea2e patch 8.2.1885: filetype tests unnessarily creates swap files
Bram Moolenaar <Bram@vim.org>
parents: 22557
diff changeset
693 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
694 endfunc
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
695
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
696 func Test_filetype_detection()
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
697 filetype on
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
698 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
699 if has('fname_case')
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
700 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
701 endif
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
702 filetype off
12029
a39e7e2ae7da patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12027
diff changeset
703 endfunc
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
704
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
705 " 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
706 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
707 \ 'virata': [['% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
708 \ ['', '% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
709 \ ['', '', '% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
710 \ ['', '', '', '% Virata'],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
711 \ ['', '', '', '', '% Virata']],
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
712 \ '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
713 \ ['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
714 \ ['__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
715 \ '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
716 \ 'scala': [['#!/path/scala']],
31203
8a54e866a5db patch 9.0.0935: when using dash it may not be recognize as filetype "sh"
Bram Moolenaar <Bram@vim.org>
parents: 31196
diff changeset
717 \ 'sh': [['#!/path/sh'],
8a54e866a5db patch 9.0.0935: when using dash it may not be recognize as filetype "sh"
Bram Moolenaar <Bram@vim.org>
parents: 31196
diff changeset
718 \ ['#!/path/bash'],
8a54e866a5db patch 9.0.0935: when using dash it may not be recognize as filetype "sh"
Bram Moolenaar <Bram@vim.org>
parents: 31196
diff changeset
719 \ ['#!/path/bash2'],
8a54e866a5db patch 9.0.0935: when using dash it may not be recognize as filetype "sh"
Bram Moolenaar <Bram@vim.org>
parents: 31196
diff changeset
720 \ ['#!/path/dash'],
8a54e866a5db patch 9.0.0935: when using dash it may not be recognize as filetype "sh"
Bram Moolenaar <Bram@vim.org>
parents: 31196
diff changeset
721 \ ['#!/path/ksh'],
8a54e866a5db patch 9.0.0935: when using dash it may not be recognize as filetype "sh"
Bram Moolenaar <Bram@vim.org>
parents: 31196
diff changeset
722 \ ['#!/path/ksh93']],
8a54e866a5db patch 9.0.0935: when using dash it may not be recognize as filetype "sh"
Bram Moolenaar <Bram@vim.org>
parents: 31196
diff changeset
723 \ 'csh': [['#!/path/csh']],
13168
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
724 \ '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
725 \ '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
726 \ '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
727 \ ['#!/path/wish'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
728 \ ['#!/path/expectk'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
729 \ ['#!/path/itclsh'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
730 \ ['#!/path/itkwish']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
731 \ '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
732 \ '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
733 \ '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
734 \ '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
735 \ ['#!/path/pike0'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
736 \ ['#!/path/pike9']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
737 \ '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
738 \ '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
739 \ '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
740 \ 'php': [['#!/path/php']],
13182
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
741 \ 'python': [['#!/path/python'],
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
742 \ ['#!/path/python2'],
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
743 \ ['#!/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
744 \ '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
745 \ '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
746 \ 'javascript': [['#!/path/node'],
13182
181ddaf5e467 patch 8.0.1465: python2 and python3 detection not tested
Christian Brabandt <cb@256bit.org>
parents: 13168
diff changeset
747 \ ['#!/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
748 \ ['#!/path/nodejs'],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
749 \ ['#!/path/rhino']],
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
750 \ 'bc': [['#!/path/bc']],
27132
0b5ce27d8b68 patch 8.2.4095: sed script not recognized by the first line
Bram Moolenaar <Bram@vim.org>
parents: 27096
diff changeset
751 \ 'sed': [['#!/path/sed'], ['#n'], ['#n comment']],
13168
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
752 \ 'ocaml': [['#!/path/ocaml']],
21817
c2c2e57562ee patch 8.2.1458: .gawk files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 21719
diff changeset
753 \ 'awk': [['#!/path/awk'],
c2c2e57562ee patch 8.2.1458: .gawk files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 21719
diff changeset
754 \ ['#!/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
755 \ 'wml': [['#!/path/wml']],
29397
7f5db9decf32 patch 9.0.0041: a couple of filetype patterns do not have "*" before "/etc"
Bram Moolenaar <Bram@vim.org>
parents: 29338
diff changeset
756 \ 'scheme': [['#!/path/scheme'],
7f5db9decf32 patch 9.0.0041: a couple of filetype patterns do not have "*" before "/etc"
Bram Moolenaar <Bram@vim.org>
parents: 29338
diff changeset
757 \ ['#!/path/guile']],
13168
9d638acf7cf7 patch 8.0.1458: filetype detection test does not check all scripts
Christian Brabandt <cb@256bit.org>
parents: 13128
diff changeset
758 \ '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
759 \ '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
760 \ '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
761 \ '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
762 \ ['// -*- 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
763 \ '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
764 \ 'pascal': [['#!/path/instantfpc']],
23701
c5b5e7520fe2 patch 8.2.2392: fennel filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23685
diff changeset
765 \ 'fennel': [['#!/path/fennel']],
26131
87d8f52d3821 patch 8.2.3598: RouterOS filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25971
diff changeset
766 \ 'routeros': [['#!/path/rsc']],
26141
77ad8ea01c00 patch 8.2.3603: fish filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 26133
diff changeset
767 \ 'fish': [['#!/path/fish']],
26311
ce3678583211 patch 8.2.3686: filetype detection often mixes up Forth and F#
Bram Moolenaar <Bram@vim.org>
parents: 26309
diff changeset
768 \ 'forth': [['#!/path/gforth']],
29181
71759abd2145 patch 8.2.5110: icon filetype not recognized from the first line
Bram Moolenaar <Bram@vim.org>
parents: 29064
diff changeset
769 \ 'icon': [['#!/path/icon']],
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
770 \ }
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
771
20756
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
772 " 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
773 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
774 \ '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
775 \ '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
776 \ '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
777 \ '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
778 \ '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
779 \ '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
780 \ }
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
781
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
782 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
783 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
784 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
785 for file in files
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
786 call writefile(file, 'Xtest', 'D')
12255
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
787 split Xtest
12688
a6a935b3270e patch 8.0.1222: test functions interfere with each other
Christian Brabandt <cb@256bit.org>
parents: 12255
diff changeset
788 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
789 bwipe!
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
790 endfor
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
791 endfor
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
792 filetype off
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
793 endfunc
d5710baf5cf7 patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents: 12052
diff changeset
794
20756
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
795 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
796 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
797 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
798 endfunc
33a14786a0e4 patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents: 20749
diff changeset
799
15097
1946487c74ba patch 8.1.0559: command line completion not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 14991
diff changeset
800 func Test_setfiletype_completion()
1946487c74ba patch 8.1.0559: command line completion not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 14991
diff changeset
801 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
802 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
803 endfunc
19425
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
804
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
805 " 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
806 func Test_emptybuf_ftdetect()
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
807 new
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
808 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
809 call assert_equal('', &filetype)
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
810 filetype detect
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
811 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
812 close!
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
813 endfunc
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
814
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
815 " 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
816 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
817 new Xtest.vim
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
818 filetype indent on
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
819 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
820 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
821 \ 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
822 filetype indent off
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
823 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
824 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
825 \ 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
826 close
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
827 endfunc
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
828
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
829 """""""""""""""""""""""""""""""""""""""""""""""""
28483
62a0dd56466c patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28445
diff changeset
830 " Tests for specific extensions and filetypes.
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
831 " Keep sorted.
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
832 """""""""""""""""""""""""""""""""""""""""""""""""
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
833
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
834 func Test_bas_file()
21008
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
835 filetype on
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
836
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
837 call writefile(['looks like BASIC'], 'Xfile.bas', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
838 split Xfile.bas
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
839 call assert_equal('basic', &filetype)
21008
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
840 bwipe!
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
841
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
842 " Test dist#ft#FTbas()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
843
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
844 let g:filetype_bas = 'freebasic'
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
845 split Xfile.bas
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
846 call assert_equal('freebasic', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
847 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
848 unlet g:filetype_bas
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
849
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
850 " FreeBASIC
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
851
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
852 call writefile(["/' FreeBASIC multiline comment '/"], 'Xfile.bas')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
853 split Xfile.bas
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
854 call assert_equal('freebasic', &filetype)
21008
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
855 bwipe!
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
856
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
857 call writefile(['#define TESTING'], 'Xfile.bas')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
858 split Xfile.bas
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
859 call assert_equal('freebasic', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
860 bwipe!
21008
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
861
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
862 call writefile(['option byval'], 'Xfile.bas')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
863 split Xfile.bas
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
864 call assert_equal('freebasic', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
865 bwipe!
27420
978890380129 patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents: 27344
diff changeset
866
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
867 call writefile(['extern "C"'], 'Xfile.bas')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
868 split Xfile.bas
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
869 call assert_equal('freebasic', &filetype)
27420
978890380129 patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents: 27344
diff changeset
870 bwipe!
978890380129 patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents: 27344
diff changeset
871
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
872 " QB64
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
873
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
874 call writefile(['$LET TESTING = 1'], 'Xfile.bas')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
875 split Xfile.bas
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
876 call assert_equal('qb64', &filetype)
27420
978890380129 patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents: 27344
diff changeset
877 bwipe!
978890380129 patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents: 27344
diff changeset
878
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
879 call writefile(['OPTION _EXPLICIT'], 'Xfile.bas')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
880 split Xfile.bas
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
881 call assert_equal('qb64', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
882 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
883
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
884 " Visual Basic
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
885
29326
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
886 call writefile(['Attribute VB_NAME = "Testing"', 'Enum Foo', 'End Enum'], 'Xfile.bas')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
887 split Xfile.bas
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
888 call assert_equal('vb', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
889 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
890
27420
978890380129 patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents: 27344
diff changeset
891 filetype off
978890380129 patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents: 27344
diff changeset
892 endfunc
978890380129 patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents: 27344
diff changeset
893
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
894 " Test dist#ft#FTcfg()
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
895 func Test_cfg_file()
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
896 filetype on
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
897
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
898 " *.cfg defaults to cfg
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
899 call writefile(['looks like cfg'], 'cfgfile.cfg', 'D')
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
900 split cfgfile.cfg
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
901 call assert_equal('cfg', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
902
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
903 let g:filetype_cfg = 'other'
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
904 edit
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
905 call assert_equal('other', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
906 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
907 unlet g:filetype_cfg
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
908
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
909 " RAPID cfg
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
910 let ext = 'cfg'
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
911 for i in ['EIO', 'MMC', 'MOC', 'PROC', 'SIO', 'SYS']
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
912 call writefile([i .. ':CFG'], 'cfgfile.' .. ext)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
913 execute "split cfgfile." .. ext
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
914 call assert_equal('rapid', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
915 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
916 call delete('cfgfile.' .. ext)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
917 " check different case of file extension
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
918 let ext = substitute(ext, '\(\l\)', '\u\1', '')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
919 endfor
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
920
28954
0a7b2b0d8c7f patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents: 28670
diff changeset
921 " clean up
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
922 filetype off
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
923 endfunc
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
924
27877
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
925 func Test_d_file()
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
926 filetype on
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
927
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
928 call writefile(['looks like D'], 'Xfile.d', 'D')
27877
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
929 split Xfile.d
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
930 call assert_equal('d', &filetype)
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
931 bwipe!
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
932
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
933 call writefile(['#!/some/bin/dtrace'], 'Xfile.d')
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
934 split Xfile.d
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
935 call assert_equal('dtrace', &filetype)
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
936 bwipe!
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
937
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
938 call writefile(['#pragma D option'], 'Xfile.d')
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
939 split Xfile.d
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
940 call assert_equal('dtrace', &filetype)
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
941 bwipe!
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
942
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
943 call writefile([':some:thing:'], 'Xfile.d')
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
944 split Xfile.d
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
945 call assert_equal('dtrace', &filetype)
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
946 bwipe!
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
947
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
948 call writefile(['module this', '#pragma D option'], 'Xfile.d')
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
949 split Xfile.d
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
950 call assert_equal('d', &filetype)
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
951 bwipe!
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
952
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
953 call writefile(['import that', '#pragma D option'], 'Xfile.d')
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
954 split Xfile.d
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
955 call assert_equal('d', &filetype)
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
956 bwipe!
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
957
27883
9c04fbcaacbc patch 8.2.4467: running filetype test leaves file behind
Bram Moolenaar <Bram@vim.org>
parents: 27881
diff changeset
958 " clean up
27877
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
959 filetype off
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
960 endfunc
834d3fba1e7c patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents: 27796
diff changeset
961
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
962 func Test_dat_file()
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
963 filetype on
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
964
28377
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
965 " KRL header start with "&WORD", but is not always present.
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
966 call writefile(['&ACCESS'], 'datfile.dat')
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
967 split datfile.dat
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
968 call assert_equal('krl', &filetype)
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
969 bwipe!
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
970 call delete('datfile.dat')
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
971
28377
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
972 " KRL defdat with leading spaces, for KRL file extension is not case
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
973 " sensitive.
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
974 call writefile([' DEFDAT datfile'], 'datfile.Dat')
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
975 split datfile.Dat
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
976 call assert_equal('krl', &filetype)
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
977 bwipe!
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
978 call delete('datfile.Dat')
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
979
28377
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
980 " KRL defdat with embedded spaces, file starts with empty line(s).
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
981 call writefile(['', 'defdat datfile public'], 'datfile.DAT')
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
982 split datfile.DAT
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
983 call assert_equal('krl', &filetype)
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
984 bwipe!
28377
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
985
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
986 " User may overrule file inspection
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
987 let g:filetype_dat = 'dat'
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
988 split datfile.DAT
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
989 call assert_equal('dat', &filetype)
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
990 bwipe!
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
991 call delete('datfile.DAT')
28417
bca485676073 patch 8.2.4733: HEEx and Surface do need a separate filetype
Bram Moolenaar <Bram@vim.org>
parents: 28409
diff changeset
992 unlet g:filetype_dat
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
993
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
994 filetype off
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
995 endfunc
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
996
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
997 func Test_dep3patch_file()
23078
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
998 filetype on
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
999
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1000 call assert_true(mkdir('debian/patches', 'pR'))
23078
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
1001
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1002 " series files are not patches
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1003 call writefile(['Description: some awesome patch'], 'debian/patches/series')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1004 split debian/patches/series
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1005 call assert_notequal('dep3patch', &filetype)
23078
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
1006 bwipe!
d01b011f91b9 patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents: 22989
diff changeset
1007
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1008 " diff/patch files without the right headers should still show up as ft=diff
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1009 call writefile([], 'debian/patches/foo.diff')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1010 split debian/patches/foo.diff
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1011 call assert_equal('diff', &filetype)
23685
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
1012 bwipe!
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
1013
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1014 " Files with the right headers are detected as dep3patch, even if they don't
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1015 " have a diff/patch extension
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1016 call writefile(['Subject: dep3patches'], 'debian/patches/bar')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1017 split debian/patches/bar
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1018 call assert_equal('dep3patch', &filetype)
23685
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
1019 bwipe!
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
1020
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1021 " Files in sub-directories are detected
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1022 call assert_true(mkdir('debian/patches/s390x', 'p'))
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1023 call writefile(['Subject: dep3patches'], 'debian/patches/s390x/bar')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1024 split debian/patches/s390x/bar
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1025 call assert_equal('dep3patch', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1026 bwipe!
23685
eb30aed2059f patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 23636
diff changeset
1027
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1028 " The detection stops when seeing the "header end" marker
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1029 call writefile(['---', 'Origin: the cloud'], 'debian/patches/baz')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1030 split debian/patches/baz
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1031 call assert_notequal('dep3patch', &filetype)
23584
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
1032 bwipe!
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1033 endfunc
23584
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
1034
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1035 func Test_dsl_file()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1036 filetype on
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1037
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1038 call writefile([' <!doctype dsssl-spec ['], 'dslfile.dsl', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1039 split dslfile.dsl
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1040 call assert_equal('dsl', &filetype)
23584
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
1041 bwipe!
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
1042
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1043 call writefile(['workspace {'], 'dslfile.dsl')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1044 split dslfile.dsl
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1045 call assert_equal('structurizr', &filetype)
23584
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
1046 bwipe!
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
1047
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
1048 filetype off
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
1049 endfunc
397f95f103e8 patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents: 23430
diff changeset
1050
25026
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1051 func Test_ex_file()
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1052 filetype on
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1053
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1054 call writefile(['arbitrary content'], 'Xfile.ex', 'D')
25026
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1055 split Xfile.ex
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1056 call assert_equal('elixir', &filetype)
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1057 bwipe!
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1058 let g:filetype_euphoria = 'euphoria4'
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1059 split Xfile.ex
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1060 call assert_equal('euphoria4', &filetype)
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1061 bwipe!
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1062 unlet g:filetype_euphoria
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1063
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1064 call writefile(['-- filetype euphoria comment'], 'Xfile.ex')
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1065 split Xfile.ex
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1066 call assert_equal('euphoria3', &filetype)
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1067 bwipe!
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1068
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1069 call writefile(['--filetype euphoria comment'], 'Xfile.ex')
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1070 split Xfile.ex
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1071 call assert_equal('euphoria3', &filetype)
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1072 bwipe!
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1073
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1074 call writefile(['ifdef '], 'Xfile.ex')
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1075 split Xfile.ex
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1076 call assert_equal('euphoria3', &filetype)
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1077 bwipe!
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1078
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1079 call writefile(['include '], 'Xfile.ex')
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1080 split Xfile.ex
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1081 call assert_equal('euphoria3', &filetype)
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1082 bwipe!
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1083
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1084 filetype off
fda44c0b4b7b patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents: 25024
diff changeset
1085 endfunc
21008
2cf49849e933 patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents: 20986
diff changeset
1086
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1087 func Test_foam_file()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1088 filetype on
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1089 call assert_true(mkdir('0', 'pR'))
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1090 call assert_true(mkdir('0.orig', 'pR'))
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1091
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1092 call writefile(['FoamFile {', ' object something;'], 'Xfile1Dict', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1093 split Xfile1Dict
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1094 call assert_equal('foam', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1095 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1096
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1097 call writefile(['FoamFile {', ' object something;'], 'Xfile1Dict.something', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1098 split Xfile1Dict.something
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1099 call assert_equal('foam', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1100 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1101
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1102 call writefile(['FoamFile {', ' object something;'], 'XfileProperties', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1103 split XfileProperties
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1104 call assert_equal('foam', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1105 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1106
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1107 call writefile(['FoamFile {', ' object something;'], 'XfileProperties.something', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1108 split XfileProperties.something
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1109 call assert_equal('foam', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1110 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1111
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1112 call writefile(['FoamFile {', ' object something;'], 'XfileProperties')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1113 split XfileProperties
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1114 call assert_equal('foam', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1115 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1116
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1117 call writefile(['FoamFile {', ' object something;'], 'XfileProperties.something')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1118 split XfileProperties.something
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1119 call assert_equal('foam', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1120 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1121
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1122 call writefile(['FoamFile {', ' object something;'], '0/Xfile')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1123 split 0/Xfile
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1124 call assert_equal('foam', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1125 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1126
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1127 call writefile(['FoamFile {', ' object something;'], '0.orig/Xfile')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1128 split 0.orig/Xfile
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1129 call assert_equal('foam', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1130 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1131
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1132 filetype off
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1133 endfunc
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1134
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1135 func Test_frm_file()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1136 filetype on
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1137
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1138 call writefile(['looks like FORM'], 'Xfile.frm', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1139 split Xfile.frm
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1140 call assert_equal('form', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1141 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1142
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1143 " Test dist#ft#FTfrm()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1144
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1145 let g:filetype_frm = 'form'
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1146 split Xfile.frm
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1147 call assert_equal('form', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1148 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1149 unlet g:filetype_frm
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1150
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1151 " Visual Basic
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1152
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1153 call writefile(['Begin VB.Form Form1'], 'Xfile.frm')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1154 split Xfile.frm
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1155 call assert_equal('vb', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1156 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1157
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1158 filetype off
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1159 endfunc
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1160
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1161 func Test_fs_file()
25644
59a1c9a2ca2e patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25497
diff changeset
1162 filetype on
59a1c9a2ca2e patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25497
diff changeset
1163
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1164 call writefile(['looks like F#'], 'Xfile.fs', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1165 split Xfile.fs
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1166 call assert_equal('fsharp', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1167 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1168
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1169 let g:filetype_fs = 'forth'
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1170 split Xfile.fs
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1171 call assert_equal('forth', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1172 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1173 unlet g:filetype_fs
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1174
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1175 " Test dist#ft#FTfs()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1176
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1177 " Forth (Gforth)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1178
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1179 call writefile(['( Forth inline comment )'], 'Xfile.fs')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1180 split Xfile.fs
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1181 call assert_equal('forth', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1182 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1183
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1184 call writefile(['.( Forth displayed inline comment )'], 'Xfile.fs')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1185 split Xfile.fs
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1186 call assert_equal('forth', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1187 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1188
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1189 call writefile(['\ Forth line comment'], 'Xfile.fs')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1190 split Xfile.fs
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1191 call assert_equal('forth', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1192 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1193
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1194 " empty line comment - no space required
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1195 call writefile(['\'], 'Xfile.fs')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1196 split Xfile.fs
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1197 call assert_equal('forth', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1198 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1199
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1200 call writefile(['\G Forth documentation comment '], 'Xfile.fs')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1201 split Xfile.fs
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1202 call assert_equal('forth', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1203 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1204
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1205 call writefile([': squared ( n -- n^2 )', 'dup * ;'], 'Xfile.fs')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1206 split Xfile.fs
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1207 call assert_equal('forth', &filetype)
25644
59a1c9a2ca2e patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25497
diff changeset
1208 bwipe!
59a1c9a2ca2e patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25497
diff changeset
1209
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1210 filetype off
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1211 endfunc
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1212
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1213 func Test_git_file()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1214 filetype on
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1215
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1216 call assert_true(mkdir('Xrepo.git', 'pR'))
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1217
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1218 call writefile([], 'Xrepo.git/HEAD')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1219 split Xrepo.git/HEAD
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1220 call assert_equal('', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1221 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1222
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1223 call writefile(['0000000000000000000000000000000000000000'], 'Xrepo.git/HEAD')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1224 split Xrepo.git/HEAD
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1225 call assert_equal('git', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1226 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1227
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1228 call writefile(['0000000000000000000000000000000000000000000000000000000000000000'], 'Xrepo.git/HEAD')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1229 split Xrepo.git/HEAD
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1230 call assert_equal('git', &filetype)
25644
59a1c9a2ca2e patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25497
diff changeset
1231 bwipe!
59a1c9a2ca2e patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25497
diff changeset
1232
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1233 call writefile(['ref: refs/heads/master'], 'Xrepo.git/HEAD')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1234 split Xrepo.git/HEAD
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1235 call assert_equal('git', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1236 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1237
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1238 filetype off
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1239 endfunc
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1240
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1241 func Test_hook_file()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1242 filetype on
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1243
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1244 call writefile(['[Trigger]', 'this is pacman config'], 'Xfile.hook', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1245 split Xfile.hook
28507
73f235d0b6c8 patch 8.2.4778: pacman files use dosini filetype
Bram Moolenaar <Bram@vim.org>
parents: 28485
diff changeset
1246 call assert_equal('conf', &filetype)
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1247 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1248
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1249 call writefile(['not pacman'], 'Xfile.hook')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1250 split Xfile.hook
28507
73f235d0b6c8 patch 8.2.4778: pacman files use dosini filetype
Bram Moolenaar <Bram@vim.org>
parents: 28485
diff changeset
1251 call assert_notequal('conf', &filetype)
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1252 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1253
25644
59a1c9a2ca2e patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25497
diff changeset
1254 filetype off
59a1c9a2ca2e patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25497
diff changeset
1255 endfunc
59a1c9a2ca2e patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25497
diff changeset
1256
25727
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1257 func Test_m_file()
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1258 filetype on
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1259
30572
d77e208d611d patch 9.0.0621: filetype test leaves file behind
Bram Moolenaar <Bram@vim.org>
parents: 30552
diff changeset
1260 call writefile(['looks like Matlab'], 'Xfile.m', 'D')
25727
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1261 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1262 call assert_equal('matlab', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1263 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1264
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1265 let g:filetype_m = 'octave'
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1266 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1267 call assert_equal('octave', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1268 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1269 unlet g:filetype_m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1270
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1271 " Test dist#ft#FTm()
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1272
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1273 " Objective-C
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1274
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1275 call writefile(['// Objective-C line comment'], 'Xfile.m')
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1276 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1277 call assert_equal('objc', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1278 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1279
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1280 call writefile(['/* Objective-C block comment */'], 'Xfile.m')
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1281 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1282 call assert_equal('objc', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1283 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1284
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1285 call writefile(['#import "test.m"'], 'Xfile.m')
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1286 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1287 call assert_equal('objc', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1288 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1289
26296
9f32ccdadd22 patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents: 26143
diff changeset
1290 call writefile(['#include <header.h>'], 'Xfile.m')
9f32ccdadd22 patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents: 26143
diff changeset
1291 split Xfile.m
9f32ccdadd22 patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents: 26143
diff changeset
1292 call assert_equal('objc', &filetype)
9f32ccdadd22 patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents: 26143
diff changeset
1293 bwipe!
9f32ccdadd22 patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents: 26143
diff changeset
1294
9f32ccdadd22 patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents: 26143
diff changeset
1295 call writefile(['#define FORTY_TWO'], 'Xfile.m')
9f32ccdadd22 patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents: 26143
diff changeset
1296 split Xfile.m
9f32ccdadd22 patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents: 26143
diff changeset
1297 call assert_equal('objc', &filetype)
9f32ccdadd22 patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents: 26143
diff changeset
1298 bwipe!
9f32ccdadd22 patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents: 26143
diff changeset
1299
25727
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1300 " Octave
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1301
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1302 call writefile(['# Octave line comment'], 'Xfile.m')
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1303 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1304 call assert_equal('octave', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1305 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1306
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1307 call writefile(['%!test "Octave test"'], 'Xfile.m')
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1308 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1309 call assert_equal('octave', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1310 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1311
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1312 call writefile(['unwind_protect'], 'Xfile.m')
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1313 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1314 call assert_equal('octave', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1315 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1316
25794
374adc90efa5 patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents: 25727
diff changeset
1317 call writefile(['try; 42; end_try_catch'], 'Xfile.m')
25727
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1318 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1319 call assert_equal('octave', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1320 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1321
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1322 " Mathematica
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1323
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1324 call writefile(['(* Mathematica comment'], 'Xfile.m')
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1325 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1326 call assert_equal('mma', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1327 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1328
25794
374adc90efa5 patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents: 25727
diff changeset
1329 " MATLAB
374adc90efa5 patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents: 25727
diff changeset
1330
374adc90efa5 patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents: 25727
diff changeset
1331 call writefile(['% MATLAB line comment'], 'Xfile.m')
374adc90efa5 patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents: 25727
diff changeset
1332 split Xfile.m
374adc90efa5 patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents: 25727
diff changeset
1333 call assert_equal('matlab', &filetype)
374adc90efa5 patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents: 25727
diff changeset
1334 bwipe!
374adc90efa5 patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents: 25727
diff changeset
1335
25727
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1336 " Murphi
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1337
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1338 call writefile(['-- Murphi comment'], 'Xfile.m')
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1339 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1340 call assert_equal('murphi', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1341 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1342
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1343 call writefile(['/* Murphi block comment */', 'Type'], 'Xfile.m')
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1344 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1345 call assert_equal('murphi', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1346 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1347
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1348 call writefile(['Type'], 'Xfile.m')
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1349 split Xfile.m
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1350 call assert_equal('murphi', &filetype)
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1351 bwipe!
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1352
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1353 filetype off
71d3ebfb00b6 patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 25676
diff changeset
1354 endfunc
25915
36f2c43bd671 patch 8.2.3491: xpm2 filetype dection is not so good
Bram Moolenaar <Bram@vim.org>
parents: 25878
diff changeset
1355
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1356 func Test_mod_file()
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1357 filetype on
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1358
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1359 " *.mod defaults to Modsim III
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1360 call writefile(['locks like Modsim III'], 'modfile.mod')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1361 split modfile.mod
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1362 call assert_equal('modsim3', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1363 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1364
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1365 " Users preference set by g:filetype_mod
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1366 let g:filetype_mod = 'lprolog'
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1367 split modfile.mod
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1368 call assert_equal('lprolog', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1369 unlet g:filetype_mod
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1370 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1371
30182
4d3c7b4927f2 patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30176
diff changeset
1372 " RAPID header start with a line containing only "%%%",
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1373 " but is not always present.
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1374 call writefile(['%%%'], 'modfile.mod')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1375 split modfile.mod
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1376 call assert_equal('rapid', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1377 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1378 call delete('modfile.mod')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1379
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1380 " RAPID supports umlauts in module names, leading spaces,
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1381 " the .mod extension is not case sensitive.
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1382 call writefile([' module ÃœmlautModule'], 'modfile.Mod')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1383 split modfile.Mod
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1384 call assert_equal('rapid', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1385 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1386 call delete('modfile.Mod')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1387
30182
4d3c7b4927f2 patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30176
diff changeset
1388 " RAPID is not case sensitive, embedded spaces, sysmodule,
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1389 " file starts with empty line(s).
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1390 call writefile(['', 'MODULE rapidmödüle (SYSMODULE,NOSTEPIN)'], 'modfile.MOD')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1391 split modfile.MOD
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1392 call assert_equal('rapid', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1393 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1394
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1395 " Modula-2 MODULE not start of line
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1396 call writefile(['IMPLEMENTATION MODULE Module2Mod;'], 'modfile.MOD')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1397 split modfile.MOD
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1398 call assert_equal('modula2', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1399 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1400
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1401 " Modula-2 with comment and empty lines prior MODULE
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1402 call writefile(['', '(* with', ' comment *)', '', 'MODULE Module2Mod;'], 'modfile.MOD')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1403 split modfile.MOD
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1404 call assert_equal('modula2', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1405 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1406 call delete('modfile.MOD')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1407
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1408 " LambdaProlog module
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1409 call writefile(['module lpromod.'], 'modfile.mod')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1410 split modfile.mod
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1411 call assert_equal('lprolog', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1412 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1413
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1414 " LambdaProlog with comment and empty lines prior module
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1415 call writefile(['', '% with', '% comment', '', 'module lpromod.'], 'modfile.mod')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1416 split modfile.mod
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1417 call assert_equal('lprolog', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1418 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1419 call delete('modfile.mod')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1420
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1421 " go.mod
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1422 call writefile(['module example.com/M'], 'go.mod')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1423 split go.mod
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1424 call assert_equal('gomod', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1425 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1426 call delete('go.mod')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1427
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1428 filetype off
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1429 endfunc
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1430
26970
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1431 func Test_patch_file()
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1432 filetype on
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1433
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1434 call writefile([], 'Xfile.patch', 'D')
26970
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1435 split Xfile.patch
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1436 call assert_equal('diff', &filetype)
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1437 bwipe!
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1438
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1439 call writefile(['From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001'], 'Xfile.patch')
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1440 split Xfile.patch
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1441 call assert_equal('gitsendemail', &filetype)
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1442 bwipe!
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1443
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1444 call writefile(['From 0000000000000000000000000000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001'], 'Xfile.patch')
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1445 split Xfile.patch
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1446 call assert_equal('gitsendemail', &filetype)
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1447 bwipe!
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1448
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1449 filetype off
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1450 endfunc
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1451
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1452 func Test_perl_file()
26970
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1453 filetype on
733295e9d755 patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents: 26933
diff changeset
1454
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1455 " only tests one case, should do more
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1456 let lines =<< trim END
27070
b353bd9faec8 patch 8.2.4064: foam files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 27008
diff changeset
1457
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1458 use a
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1459 END
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1460 call writefile(lines, "Xfile.t", 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1461 split Xfile.t
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1462 call assert_equal('perl', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1463 bwipe
27070
b353bd9faec8 patch 8.2.4064: foam files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 27008
diff changeset
1464
b353bd9faec8 patch 8.2.4064: foam files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 27008
diff changeset
1465 filetype off
b353bd9faec8 patch 8.2.4064: foam files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 27008
diff changeset
1466 endfunc
b353bd9faec8 patch 8.2.4064: foam files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 27008
diff changeset
1467
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1468 func Test_pp_file()
27287
9f72ec92d361 patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 27132
diff changeset
1469 filetype on
9f72ec92d361 patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 27132
diff changeset
1470
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1471 call writefile(['looks like puppet'], 'Xfile.pp', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1472 split Xfile.pp
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1473 call assert_equal('puppet', &filetype)
27287
9f72ec92d361 patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 27132
diff changeset
1474 bwipe!
9f72ec92d361 patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 27132
diff changeset
1475
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1476 let g:filetype_pp = 'pascal'
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1477 split Xfile.pp
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1478 call assert_equal('pascal', &filetype)
27287
9f72ec92d361 patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 27132
diff changeset
1479 bwipe!
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1480 unlet g:filetype_pp
27287
9f72ec92d361 patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 27132
diff changeset
1481
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1482 " Test dist#ft#FTpp()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1483 call writefile(['{ pascal comment'], 'Xfile.pp')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1484 split Xfile.pp
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1485 call assert_equal('pascal', &filetype)
27287
9f72ec92d361 patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 27132
diff changeset
1486 bwipe!
9f72ec92d361 patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 27132
diff changeset
1487
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1488 call writefile(['procedure pascal'], 'Xfile.pp')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1489 split Xfile.pp
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1490 call assert_equal('pascal', &filetype)
27493
3af3dee7e5d9 patch 8.2.4274: Basic and form filetype detection is incomplete
Bram Moolenaar <Bram@vim.org>
parents: 27445
diff changeset
1491 bwipe!
3af3dee7e5d9 patch 8.2.4274: Basic and form filetype detection is incomplete
Bram Moolenaar <Bram@vim.org>
parents: 27445
diff changeset
1492
3af3dee7e5d9 patch 8.2.4274: Basic and form filetype detection is incomplete
Bram Moolenaar <Bram@vim.org>
parents: 27445
diff changeset
1493 filetype off
3af3dee7e5d9 patch 8.2.4274: Basic and form filetype detection is incomplete
Bram Moolenaar <Bram@vim.org>
parents: 27445
diff changeset
1494 endfunc
3af3dee7e5d9 patch 8.2.4274: Basic and form filetype detection is incomplete
Bram Moolenaar <Bram@vim.org>
parents: 27445
diff changeset
1495
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1496 " Test dist#ft#FTprg()
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1497 func Test_prg_file()
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1498 filetype on
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1499
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1500 " *.prg defaults to clipper
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1501 call writefile(['looks like clipper'], 'prgfile.prg')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1502 split prgfile.prg
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1503 call assert_equal('clipper', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1504 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1505
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1506 " Users preference set by g:filetype_prg
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1507 let g:filetype_prg = 'eviews'
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1508 split prgfile.prg
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1509 call assert_equal('eviews', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1510 unlet g:filetype_prg
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1511 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1512
30182
4d3c7b4927f2 patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30176
diff changeset
1513 " RAPID header start with a line containing only "%%%",
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1514 " but is not always present.
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1515 call writefile(['%%%'], 'prgfile.prg')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1516 split prgfile.prg
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1517 call assert_equal('rapid', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1518 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1519 call delete('prgfile.prg')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1520
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1521 " RAPID supports umlauts in module names, leading spaces,
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1522 " the .prg extension is not case sensitive.
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1523 call writefile([' module ÃœmlautModule'], 'prgfile.Prg')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1524 split prgfile.Prg
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1525 call assert_equal('rapid', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1526 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1527 call delete('prgfile.Prg')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1528
30182
4d3c7b4927f2 patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30176
diff changeset
1529 " RAPID is not case sensitive, embedded spaces, sysmodule,
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1530 " file starts with empty line(s).
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1531 call writefile(['', 'MODULE rapidmödüle (SYSMODULE,NOSTEPIN)'], 'prgfile.PRG')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1532 split prgfile.PRG
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1533 call assert_equal('rapid', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1534 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1535 call delete('prgfile.PRG')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1536
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1537 filetype off
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1538 endfunc
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1539
28443
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1540 " Test dist#ft#FTsc()
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1541 func Test_sc_file()
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1542 filetype on
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1543
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1544 " SC classes are defined with '+ Class {}'
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1545 call writefile(['+ SCNvim {', '*methodArgs {|method|'], 'srcfile.sc')
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1546 split srcfile.sc
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1547 call assert_equal('supercollider', &filetype)
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1548 bwipe!
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1549 call delete('srcfile.sc')
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1550
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1551 " Some SC class files start with comment and define methods many lines later
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1552 call writefile(['// Query', '//Method','^this {'], 'srcfile.sc')
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1553 split srcfile.sc
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1554 call assert_equal('supercollider', &filetype)
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1555 bwipe!
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1556 call delete('srcfile.sc')
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1557
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1558 " Some SC class files put comments between method declaration after class
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1559 call writefile(['PingPong {', '//comment','*ar { arg'], 'srcfile.sc')
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1560 split srcfile.sc
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1561 call assert_equal('supercollider', &filetype)
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1562 bwipe!
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1563 call delete('srcfile.sc')
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1564
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1565 filetype off
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1566 endfunc
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1567
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1568 " Test dist#ft#FTscd()
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1569 func Test_scd_file()
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1570 filetype on
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1571
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1572 call writefile(['ijq(1)'], 'srcfile.scd', 'D')
28443
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1573 split srcfile.scd
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1574 call assert_equal('scdoc', &filetype)
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1575
28443
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1576 bwipe!
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1577 filetype off
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1578 endfunc
5896c0f6cdd7 patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28417
diff changeset
1579
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1580 func Test_src_file()
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1581 filetype on
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1582
28377
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
1583 " KRL header start with "&WORD", but is not always present.
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1584 call writefile(['&ACCESS'], 'srcfile.src')
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1585 split srcfile.src
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1586 call assert_equal('krl', &filetype)
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1587 bwipe!
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1588 call delete('srcfile.src')
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1589
28377
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
1590 " KRL def with leading spaces, for KRL file extension is not case sensitive.
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1591 call writefile([' DEF srcfile()'], 'srcfile.Src')
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1592 split srcfile.Src
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1593 call assert_equal('krl', &filetype)
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1594 bwipe!
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1595 call delete('srcfile.Src')
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1596
28483
62a0dd56466c patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28445
diff changeset
1597 " KRL global deffct with embedded spaces, file starts with empty line(s).
62a0dd56466c patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28445
diff changeset
1598 for text in ['global def srcfile()', 'global deffct srcfile()']
62a0dd56466c patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28445
diff changeset
1599 call writefile(['', text], 'srcfile.SRC')
62a0dd56466c patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28445
diff changeset
1600 split srcfile.SRC
62a0dd56466c patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28445
diff changeset
1601 call assert_equal('krl', &filetype, text)
62a0dd56466c patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28445
diff changeset
1602 bwipe!
62a0dd56466c patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28445
diff changeset
1603 endfor
28377
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
1604
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
1605 " User may overrule file inspection
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
1606 let g:filetype_src = 'src'
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
1607 split srcfile.SRC
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
1608 call assert_equal('src', &filetype)
3c34cbb8882d patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents: 28365
diff changeset
1609 bwipe!
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1610 call delete('srcfile.SRC')
28417
bca485676073 patch 8.2.4733: HEEx and Surface do need a separate filetype
Bram Moolenaar <Bram@vim.org>
parents: 28409
diff changeset
1611 unlet g:filetype_src
28351
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1612
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1613 filetype off
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1614 endfunc
1aa3460f799d patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents: 28277
diff changeset
1615
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1616 func Test_sys_file()
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1617 filetype on
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1618
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1619 " *.sys defaults to Batch file for MSDOS
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1620 call writefile(['looks like dos batch'], 'sysfile.sys')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1621 split sysfile.sys
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1622 call assert_equal('bat', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1623 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1624
28445
7f0ec490d608 patch 8.2.4747: no filetype override for .sys files
Bram Moolenaar <Bram@vim.org>
parents: 28443
diff changeset
1625 " Users preference set by g:filetype_sys
7f0ec490d608 patch 8.2.4747: no filetype override for .sys files
Bram Moolenaar <Bram@vim.org>
parents: 28443
diff changeset
1626 let g:filetype_sys = 'sys'
7f0ec490d608 patch 8.2.4747: no filetype override for .sys files
Bram Moolenaar <Bram@vim.org>
parents: 28443
diff changeset
1627 split sysfile.sys
7f0ec490d608 patch 8.2.4747: no filetype override for .sys files
Bram Moolenaar <Bram@vim.org>
parents: 28443
diff changeset
1628 call assert_equal('sys', &filetype)
7f0ec490d608 patch 8.2.4747: no filetype override for .sys files
Bram Moolenaar <Bram@vim.org>
parents: 28443
diff changeset
1629 unlet g:filetype_sys
7f0ec490d608 patch 8.2.4747: no filetype override for .sys files
Bram Moolenaar <Bram@vim.org>
parents: 28443
diff changeset
1630 bwipe!
7f0ec490d608 patch 8.2.4747: no filetype override for .sys files
Bram Moolenaar <Bram@vim.org>
parents: 28443
diff changeset
1631
30182
4d3c7b4927f2 patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30176
diff changeset
1632 " RAPID header start with a line containing only "%%%",
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1633 " but is not always present.
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1634 call writefile(['%%%'], 'sysfile.sys')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1635 split sysfile.sys
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1636 call assert_equal('rapid', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1637 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1638 call delete('sysfile.sys')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1639
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1640 " RAPID supports umlauts in module names, leading spaces,
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1641 " the .sys extension is not case sensitive.
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1642 call writefile([' module ÃœmlautModule'], 'sysfile.Sys')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1643 split sysfile.Sys
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1644 call assert_equal('rapid', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1645 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1646 call delete('sysfile.Sys')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1647
30182
4d3c7b4927f2 patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30176
diff changeset
1648 " RAPID is not case sensitive, embedded spaces, sysmodule,
28390
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1649 " file starts with empty line(s).
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1650 call writefile(['', 'MODULE rapidmödüle (SYSMODULE,NOSTEPIN)'], 'sysfile.SYS')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1651 split sysfile.SYS
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1652 call assert_equal('rapid', &filetype)
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1653 bwipe!
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1654 call delete('sysfile.SYS')
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1655
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1656 filetype off
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1657 endfunc
cc4d3ded4004 patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents: 28380
diff changeset
1658
27557
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1659 func Test_tex_file()
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1660 filetype on
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1661
31575
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1662 call writefile(['%& pdflatex'], 'Xfile.tex')
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1663 split Xfile.tex
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1664 call assert_equal('tex', &filetype)
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1665 bwipe
27557
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1666
31575
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1667 call writefile(['\newcommand{\test}{some text}'], 'Xfile.tex')
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1668 split Xfile.tex
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1669 call assert_equal('tex', &filetype)
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1670 bwipe
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1671
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1672 " tex_flavor is unset
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1673 call writefile(['%& plain'], 'Xfile.tex')
27557
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1674 split Xfile.tex
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1675 call assert_equal('plaintex', &filetype)
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1676 bwipe
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1677
31575
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1678 let g:tex_flavor = 'plain'
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1679 call writefile(['just some text'], 'Xfile.tex')
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1680 split Xfile.tex
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1681 call assert_equal('plaintex', &filetype)
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1682 bwipe
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1683
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1684 let lines =<< trim END
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1685 % This is a comment.
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1686
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1687 \usemodule[translate]
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1688 END
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1689 call writefile(lines, 'Xfile.tex')
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1690 split Xfile.tex
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1691 call assert_equal('context', &filetype)
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1692 bwipe
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1693
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1694 let g:tex_flavor = 'context'
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1695 call writefile(['just some text'], 'Xfile.tex')
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1696 split Xfile.tex
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1697 call assert_equal('context', &filetype)
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1698 bwipe
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1699 unlet g:tex_flavor
60fe50450ee5 patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents: 31547
diff changeset
1700
27557
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1701 call delete('Xfile.tex')
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1702 filetype off
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1703 endfunc
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1704
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1705 func Test_tf_file()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1706 filetype on
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1707
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1708 call writefile([';;; TF MUD client is super duper cool'], 'Xfile.tf', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1709 split Xfile.tf
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1710 call assert_equal('tf', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1711 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1712
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1713 call writefile(['provider "azurerm" {'], 'Xfile.tf')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1714 split Xfile.tf
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1715 call assert_equal('terraform', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1716 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1717
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1718 filetype off
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1719 endfunc
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1720
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1721 func Test_ts_file()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1722 filetype on
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1723
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1724 call writefile(['<?xml version="1.0" encoding="utf-8"?>'], 'Xfile.ts', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1725 split Xfile.ts
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1726 call assert_equal('xml', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1727 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1728
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1729 call writefile(['// looks like Typescript'], 'Xfile.ts')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1730 split Xfile.ts
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1731 call assert_equal('typescript', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1732 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1733
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1734 filetype off
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1735 endfunc
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1736
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1737 func Test_ttl_file()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1738 filetype on
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1739
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1740 call writefile(['@base <http://example.org/> .'], 'Xfile.ttl', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1741 split Xfile.ttl
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1742 call assert_equal('turtle', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1743 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1744
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1745 call writefile(['looks like Tera Term Language'], 'Xfile.ttl')
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1746 split Xfile.ttl
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1747 call assert_equal('teraterm', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1748 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1749
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1750 filetype off
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1751 endfunc
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1752
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1753 func Test_xpm_file()
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1754 filetype on
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1755
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1756 call writefile(['this is XPM2'], 'file.xpm', 'D')
27559
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1757 split file.xpm
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1758 call assert_equal('xpm2', &filetype)
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1759 bwipe!
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1760
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1761 filetype off
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1762 endfunc
663dece3743a patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents: 27557
diff changeset
1763
29326
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1764 func Test_cls_file()
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1765 filetype on
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1766
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1767 call writefile(['looks like Smalltalk'], 'Xfile.cls', 'D')
29326
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1768 split Xfile.cls
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1769 call assert_equal('st', &filetype)
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1770 bwipe!
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1771
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1772 " Test dist#ft#FTcls()
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1773
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1774 let g:filetype_cls = 'vb'
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1775 split Xfile.cls
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1776 call assert_equal('vb', &filetype)
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1777 bwipe!
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1778 unlet g:filetype_cls
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1779
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1780 " TeX
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1781
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1782 call writefile(['%'], 'Xfile.cls')
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1783 split Xfile.cls
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1784 call assert_equal('tex', &filetype)
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1785 bwipe!
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1786
30873
d4c8fdaa3ae7 patch 9.0.0771: cannot always tell the difference beween tex and rexx files
Bram Moolenaar <Bram@vim.org>
parents: 30835
diff changeset
1787 call writefile(['\NeedsTeXFormat{LaTeX2e}'], 'Xfile.cls')
d4c8fdaa3ae7 patch 9.0.0771: cannot always tell the difference beween tex and rexx files
Bram Moolenaar <Bram@vim.org>
parents: 30835
diff changeset
1788 split Xfile.cls
d4c8fdaa3ae7 patch 9.0.0771: cannot always tell the difference beween tex and rexx files
Bram Moolenaar <Bram@vim.org>
parents: 30835
diff changeset
1789 call assert_equal('tex', &filetype)
d4c8fdaa3ae7 patch 9.0.0771: cannot always tell the difference beween tex and rexx files
Bram Moolenaar <Bram@vim.org>
parents: 30835
diff changeset
1790 bwipe!
d4c8fdaa3ae7 patch 9.0.0771: cannot always tell the difference beween tex and rexx files
Bram Moolenaar <Bram@vim.org>
parents: 30835
diff changeset
1791
29326
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1792 " Rexx
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1793
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1794 call writefile(['# rexx'], 'Xfile.cls')
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1795 split Xfile.cls
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1796 call assert_equal('rexx', &filetype)
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1797 bwipe!
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1798
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1799 " Visual Basic
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1800
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1801 call writefile(['VERSION 1.0 CLASS'], 'Xfile.cls')
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1802 split Xfile.cls
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1803 call assert_equal('vb', &filetype)
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1804 bwipe!
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1805
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1806 filetype off
1f1d99bba06c patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents: 29324
diff changeset
1807 endfunc
27557
ce72087b601f patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents: 27493
diff changeset
1808
29338
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1809 func Test_sig_file()
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1810 filetype on
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1811
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1812 call writefile(['this is neither Lambda Prolog nor SML'], 'Xfile.sig', 'D')
29338
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1813 split Xfile.sig
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1814 call assert_equal('', &filetype)
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1815 bwipe!
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1816
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1817 " Test dist#ft#FTsig()
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1818
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1819 let g:filetype_sig = 'sml'
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1820 split Xfile.sig
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1821 call assert_equal('sml', &filetype)
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1822 bwipe!
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1823 unlet g:filetype_sig
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1824
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1825 " Lambda Prolog
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1826
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1827 call writefile(['sig foo.'], 'Xfile.sig')
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1828 split Xfile.sig
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1829 call assert_equal('lprolog', &filetype)
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1830 bwipe!
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1831
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1832 call writefile(['/* ... */'], 'Xfile.sig')
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1833 split Xfile.sig
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1834 call assert_equal('lprolog', &filetype)
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1835 bwipe!
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1836
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1837 call writefile(['% ...'], 'Xfile.sig')
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1838 split Xfile.sig
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1839 call assert_equal('lprolog', &filetype)
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1840 bwipe!
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1841
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1842 " SML signature file
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1843
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1844 call writefile(['signature FOO ='], 'Xfile.sig')
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1845 split Xfile.sig
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1846 call assert_equal('sml', &filetype)
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1847 bwipe!
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1848
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1849 call writefile(['structure FOO ='], 'Xfile.sig')
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1850 split Xfile.sig
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1851 call assert_equal('sml', &filetype)
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1852 bwipe!
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1853
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1854 call writefile(['(* ... *)'], 'Xfile.sig')
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1855 split Xfile.sig
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1856 call assert_equal('sml', &filetype)
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1857 bwipe!
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1858
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1859 filetype off
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1860 endfunc
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1861
30023
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1862 " Test dist#ft#FTsil()
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1863 func Test_sil_file()
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1864 filetype on
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1865
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1866 split Xfile.sil
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1867 call assert_equal('sil', &filetype)
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1868 bwipe!
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1869
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1870 let lines =<< trim END
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1871 // valid
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1872 let protoErasedPathA = \ABCProtocol.a
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1873
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1874 // also valid
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1875 let protoErasedPathA =
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1876 \ABCProtocol.a
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1877 END
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1878 call writefile(lines, 'Xfile.sil', 'D')
30023
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1879
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1880 split Xfile.sil
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1881 call assert_equal('sil', &filetype)
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1882 bwipe!
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1883
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1884 " SILE
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1885
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1886 call writefile(['% some comment'], 'Xfile.sil')
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1887 split Xfile.sil
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1888 call assert_equal('sile', &filetype)
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1889 bwipe!
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1890
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1891 call writefile(['\begin[papersize=a6]{document}foo\end{document}'], 'Xfile.sil')
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1892 split Xfile.sil
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1893 call assert_equal('sile', &filetype)
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1894 bwipe!
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1895
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1896 filetype off
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1897 endfunc
87063bfe81cd patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents: 29962
diff changeset
1898
29427
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1899 func Test_inc_file()
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1900 filetype on
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1901
30552
a7a9e8b9af89 patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents: 30537
diff changeset
1902 call writefile(['this is the fallback'], 'Xfile.inc', 'D')
29427
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1903 split Xfile.inc
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1904 call assert_equal('pov', &filetype)
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1905 bwipe!
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1906
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1907 let g:filetype_inc = 'foo'
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1908 split Xfile.inc
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1909 call assert_equal('foo', &filetype)
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1910 bwipe!
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1911 unlet g:filetype_inc
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1912
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1913 " aspperl
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1914 call writefile(['perlscript'], 'Xfile.inc')
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1915 split Xfile.inc
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1916 call assert_equal('aspperl', &filetype)
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1917 bwipe!
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1918
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1919 " aspvbs
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1920 call writefile(['<% something'], 'Xfile.inc')
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1921 split Xfile.inc
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1922 call assert_equal('aspvbs', &filetype)
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1923 bwipe!
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1924
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1925 " php
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1926 call writefile(['<?php'], 'Xfile.inc')
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1927 split Xfile.inc
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1928 call assert_equal('php', &filetype)
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1929 bwipe!
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1930
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1931 " pascal
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1932 call writefile(['program'], 'Xfile.inc')
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1933 split Xfile.inc
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1934 call assert_equal('pascal', &filetype)
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1935 bwipe!
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1936
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1937 " bitbake
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1938 call writefile(['require foo'], 'Xfile.inc')
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1939 split Xfile.inc
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1940 call assert_equal('bitbake', &filetype)
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1941 bwipe!
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1942
29493
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1943 call writefile(['S = "${WORKDIR}"'], 'Xfile.inc')
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1944 split Xfile.inc
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1945 call assert_equal('bitbake', &filetype)
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1946 bwipe!
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1947
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1948 call writefile(['DEPENDS:append = " somedep"'], 'Xfile.inc')
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1949 split Xfile.inc
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1950 call assert_equal('bitbake', &filetype)
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1951 bwipe!
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1952
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1953 call writefile(['MACHINE ??= "qemu"'], 'Xfile.inc')
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1954 split Xfile.inc
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1955 call assert_equal('bitbake', &filetype)
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1956 bwipe!
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1957
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1958 call writefile(['PROVIDES := "test"'], 'Xfile.inc')
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1959 split Xfile.inc
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1960 call assert_equal('bitbake', &filetype)
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1961 bwipe!
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1962
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1963 call writefile(['RDEPENDS_${PN} += "bar"'], 'Xfile.inc')
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1964 split Xfile.inc
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1965 call assert_equal('bitbake', &filetype)
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1966 bwipe!
6c1e06abff2c patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents: 29485
diff changeset
1967
29427
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1968 " asm
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1969 call writefile(['asmsyntax=foo'], 'Xfile.inc')
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1970 split Xfile.inc
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1971 call assert_equal('foo', &filetype)
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1972 bwipe!
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1973
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1974 filetype off
2830faa3e100 patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents: 29415
diff changeset
1975 endfunc
29338
f4f531986753 patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents: 29326
diff changeset
1976
30890
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1977 func Test_lsl_file()
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1978 filetype on
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1979
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1980 call writefile(['looks like Linden Scripting Language'], 'Xfile.lsl', 'D')
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1981 split Xfile.lsl
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1982 call assert_equal('lsl', &filetype)
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1983 bwipe!
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1984
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1985 " Test dist#ft#FTlsl()
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1986
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1987 let g:filetype_lsl = 'larch'
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1988 split Xfile.lsl
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1989 call assert_equal('larch', &filetype)
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1990 bwipe!
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1991 unlet g:filetype_lsl
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1992
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1993 " Larch Shared Language
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1994
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1995 call writefile(['% larch comment'], 'Xfile.lsl')
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1996 split Xfile.lsl
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1997 call assert_equal('larch', &filetype)
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1998 bwipe!
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
1999
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
2000 call writefile(['foo: trait'], 'Xfile.lsl')
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
2001 split Xfile.lsl
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
2002 call assert_equal('larch', &filetype)
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
2003 bwipe!
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
2004
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
2005 filetype off
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
2006 endfunc
ebcaf6bbb410 patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents: 30873
diff changeset
2007
19425
67fbe280a502 patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents: 19263
diff changeset
2008 " vim: shiftwidth=2 sts=2 expandtab