Mercurial > vim
annotate src/testdir/test_filetype.vim @ 32519:eae7e7217f26 v9.0.1591
patch 9.0.1591: some "gomod" files are not recognized
Commit: https://github.com/vim/vim/commit/c9fbd2560f24180d2efa40028ed68427341d2d99
Author: Omar El Halabi <omar.el.halabi@freiheit.com>
Date: Mon May 29 19:59:45 2023 +0100
patch 9.0.1591: some "gomod" files are not recognized
Problem: Some "gomod" files are not recognized.
Solution: Check for "go.mod" file name before checking out the contents.
(Omar El Halabi, closes #12462)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 May 2023 21:00:04 +0200 |
parents | 7e989714b555 |
children | cb37dba68329 |
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. |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
45 def s:GetFilenameChecks(): dict<list<string>> |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
46 return { |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
47 none: ['bsd', 'some-bsd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
48 8th: ['file.8th'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
49 a2ps: ['/etc/a2ps.cfg', '/etc/a2ps/file.cfg', 'a2psrc', '.a2psrc', 'any/etc/a2ps.cfg', 'any/etc/a2ps/file.cfg'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
50 a65: ['file.a65'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
51 aap: ['file.aap'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
52 abap: ['file.abap'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
53 abc: ['file.abc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
54 abel: ['file.abl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
55 acedb: ['file.wrm'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
56 ada: ['file.adb', 'file.ads', 'file.ada', 'file.gpr'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
57 ahdl: ['file.tdf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
58 aidl: ['file.aidl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
59 alsaconf: ['.asoundrc', '/usr/share/alsa/alsa.conf', '/etc/asound.conf', 'any/etc/asound.conf', 'any/usr/share/alsa/alsa.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
60 aml: ['file.aml'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
61 ampl: ['file.run'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
62 ant: ['build.xml'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
63 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
64 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
65 applescript: ['file.scpt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
66 aptconf: ['apt.conf', '/.aptitude/config', 'any/.aptitude/config'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
67 arch: ['.arch-inventory', '=tagging-method'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
68 arduino: ['file.ino', 'file.pde'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
69 art: ['file.art'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
70 asciidoc: ['file.asciidoc', 'file.adoc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
71 asn: ['file.asn', 'file.asn1'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
72 asterisk: ['asterisk/file.conf', 'asterisk/file.conf-file', 'some-asterisk/file.conf', 'some-asterisk/file.conf-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
73 astro: ['file.astro'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
74 atlas: ['file.atl', 'file.as'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
75 autohotkey: ['file.ahk'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
76 autoit: ['file.au3'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
77 automake: ['GNUmakefile.am', 'makefile.am', 'Makefile.am'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
78 ave: ['file.ave'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
79 awk: ['file.awk', 'file.gawk'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
80 b: ['file.mch', 'file.ref', 'file.imp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
81 basic: ['file.bas', 'file.bi', 'file.bm'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
82 bass: ['file.bass'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
83 bc: ['file.bc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
84 bdf: ['file.bdf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
85 beancount: ['file.beancount'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
86 bib: ['file.bib'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
87 bicep: ['file.bicep'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
88 bindzone: ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
89 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
90 blank: ['file.bl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
91 blueprint: ['file.blp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
92 bsdl: ['file.bsd', 'file.bsdl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
93 bst: ['file.bst'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
94 bzl: ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
95 bzr: ['bzr_log.any', 'bzr_log.file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
96 c: ['enlightenment/file.cfg', 'file.qc', 'file.c', 'some-enlightenment/file.cfg'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
97 cabal: ['file.cabal'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
98 cabalconfig: ['cabal.config'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
99 cabalproject: ['cabal.project', 'cabal.project.local'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
100 cairo: ['file.cairo'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
101 calendar: ['calendar', '/.calendar/file', '/share/calendar/any/calendar.file', '/share/calendar/calendar.file', 'any/share/calendar/any/calendar.file', 'any/share/calendar/calendar.file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
102 capnp: ['file.capnp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
103 catalog: ['catalog', 'sgml.catalogfile', 'sgml.catalog', 'sgml.catalog-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
104 cdl: ['file.cdl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
105 cdrdaoconf: ['/etc/cdrdao.conf', '/etc/defaults/cdrdao', '/etc/default/cdrdao', '.cdrdao', 'any/etc/cdrdao.conf', 'any/etc/default/cdrdao', 'any/etc/defaults/cdrdao'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
106 cdrtoc: ['file.toc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
107 cf: ['file.cfm', 'file.cfi', 'file.cfc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
108 cfengine: ['cfengine.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
109 cfg: ['file.hgrc', 'filehgrc', 'hgrc', 'some-hgrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
110 ch: ['file.chf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
111 chaiscript: ['file.chai'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
112 chaskell: ['file.chs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
113 chatito: ['file.chatito'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
114 chill: ['file..ch'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
115 chordpro: ['file.chopro', 'file.crd', 'file.cho', 'file.crdpro', 'file.chordpro'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
116 cl: ['file.eni'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
117 clean: ['file.dcl', 'file.icl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
118 clojure: ['file.clj', 'file.cljs', 'file.cljx', 'file.cljc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
119 cmake: ['CMakeLists.txt', 'file.cmake', 'file.cmake.in'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
120 cmod: ['file.cmod'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
121 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
122 cobol: ['file.cbl', 'file.cob', 'file.lib'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
123 coco: ['file.atg'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
124 conaryrecipe: ['file.recipe'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
125 conf: ['auto.master'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
126 config: ['configure.in', 'configure.ac', '/etc/hostname.file', 'any/etc/hostname.file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
127 confini: ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials', 'file.nmconnection'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
128 context: ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
129 cook: ['file.cook'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
130 corn: ['file.corn'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
131 cpon: ['file.cpon'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
132 cpp: ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh', 'file.cppm', 'file.ccm', 'file.cxxm', 'file.c++m'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
133 cqlang: ['file.cql'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
134 crm: ['file.crm'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
135 crontab: ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
136 crystal: ['file.cr'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
137 cs: ['file.cs', 'file.csx'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
138 csc: ['file.csc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
139 csdl: ['file.csdl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
140 csp: ['file.csp', 'file.fdr'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
141 css: ['file.css'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
142 cterm: ['file.con'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
143 csv: ['file.csv'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
144 cucumber: ['file.feature'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
145 cuda: ['file.cu', 'file.cuh'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
146 cue: ['file.cue'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
147 cupl: ['file.pld'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
148 cuplsim: ['file.si'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
149 cvs: ['cvs123'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
150 cvsrc: ['.cvsrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
151 cynpp: ['file.cyn'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
152 d: ['file.d'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
153 dart: ['file.dart', 'file.drt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
154 datascript: ['file.ds'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
155 dcd: ['file.dcd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
156 debchangelog: ['changelog.Debian', 'changelog.dch', 'NEWS.Debian', 'NEWS.dch', '/debian/changelog'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
157 debcontrol: ['/debian/control', 'any/debian/control'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
158 debcopyright: ['/debian/copyright', 'any/debian/copyright'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
159 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
160 def: ['file.def'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
161 denyhosts: ['denyhosts.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
162 desc: ['file.desc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
163 desktop: ['file.desktop', '.directory', 'file.directory'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
164 dhall: ['file.dhall'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
165 dictconf: ['dict.conf', '.dictrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
166 dictdconf: ['dictd.conf', 'dictdfile.conf', 'dictd-file.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
167 diff: ['file.diff', 'file.rej'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
168 dircolors: ['.dir_colors', '.dircolors', '/etc/DIR_COLORS', 'any/etc/DIR_COLORS'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
169 dnsmasq: ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
170 dockerfile: ['Containerfile', 'Dockerfile', 'dockerfile', 'file.Dockerfile', 'file.dockerfile', 'Dockerfile.debian', 'Containerfile.something'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
171 dosbatch: ['file.bat'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
172 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
173 dot: ['file.dot', 'file.gv'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
174 dracula: ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
175 dtd: ['file.dtd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
176 dtrace: ['/usr/lib/dtrace/io.d'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
177 dts: ['file.dts', 'file.dtsi'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
178 dune: ['jbuild', 'dune', 'dune-project', 'dune-workspace'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
179 dylan: ['file.dylan'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
180 dylanintr: ['file.intr'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
181 dylanlid: ['file.lid'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
182 ecd: ['file.ecd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
183 edif: ['file.edf', 'file.edif', 'file.edo'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
184 editorconfig: ['.editorconfig'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
185 eelixir: ['file.eex', 'file.leex'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
186 elinks: ['elinks.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
187 elixir: ['file.ex', 'file.exs', 'mix.lock'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
188 elm: ['file.elm'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
189 elmfilt: ['filter-rules'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
190 elsa: ['file.lc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
191 elvish: ['file.elv'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
192 epuppet: ['file.epp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
193 erlang: ['file.erl', 'file.hrl', 'file.yaws'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
194 eruby: ['file.erb', 'file.rhtml'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
195 esdl: ['file.esdl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
196 esmtprc: ['anyesmtprc', 'esmtprc', 'some-esmtprc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
197 esqlc: ['file.ec', 'file.EC'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
198 esterel: ['file.strl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
199 eterm: ['anyEterm/file.cfg', 'Eterm/file.cfg', 'some-Eterm/file.cfg'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
200 exim: ['exim.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
201 expect: ['file.exp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
202 exports: ['exports'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
203 factor: ['file.factor'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
204 falcon: ['file.fal'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
205 fan: ['file.fan', 'file.fwt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
206 fennel: ['file.fnl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
207 fetchmail: ['.fetchmailrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
208 fgl: ['file.4gl', 'file.4gh', 'file.m4gl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
209 firrtl: ['file.fir'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
210 fish: ['file.fish'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
211 focexec: ['file.fex', 'file.focexec'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
212 form: ['file.frm'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
213 forth: ['file.ft', 'file.fth'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
214 fortran: ['file.f', 'file.for', 'file.fortran', 'file.fpp', 'file.ftn', 'file.f77', 'file.f90', 'file.f95', 'file.f03', 'file.f08'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
215 fpcmake: ['file.fpc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
216 framescript: ['file.fsl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
217 freebasic: ['file.fb'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
218 fsh: ['file.fsh'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
219 fsharp: ['file.fs', 'file.fsi', 'file.fsx'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
220 fstab: ['fstab', 'mtab'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
221 func: ['file.fc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
222 fusion: ['file.fusion'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
223 fvwm: ['/.fvwm/file', 'any/.fvwm/file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
224 gdb: ['.gdbinit', 'gdbinit', 'file.gdb', '.config/gdbearlyinit', '.gdbearlyinit'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
225 gdmo: ['file.mo', 'file.gdmo'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
226 gdresource: ['file.tscn', 'file.tres'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
227 gdscript: ['file.gd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
228 gdshader: ['file.gdshader', 'file.shader'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
229 gedcom: ['file.ged', 'lltxxxxx.txt', '/tmp/lltmp', '/tmp/lltmp-file', 'any/tmp/lltmp', 'any/tmp/lltmp-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
230 gemtext: ['file.gmi', 'file.gemini'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
231 gift: ['file.gift'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
232 gitattributes: ['file.git/info/attributes', '.gitattributes', '/.config/git/attributes', '/etc/gitattributes', '/usr/local/etc/gitattributes', 'some.git/info/attributes'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
233 gitcommit: ['COMMIT_EDITMSG', 'MERGE_MSG', 'TAG_EDITMSG', 'NOTES_EDITMSG', 'EDIT_DESCRIPTION'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
234 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
235 gitignore: ['file.git/info/exclude', '.gitignore', '/.config/git/ignore', 'some.git/info/exclude'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
236 gitolite: ['gitolite.conf', '/gitolite-admin/conf/file', 'any/gitolite-admin/conf/file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
237 gitrebase: ['git-rebase-todo'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
238 gitsendemail: ['.gitsendemail.msg.xxxxxx'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
239 gkrellmrc: ['gkrellmrc', 'gkrellmrc_x'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
240 gleam: ['file.gleam'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
241 glsl: ['file.glsl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
242 gnash: ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
243 gnuplot: ['file.gpi', '.gnuplot'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
244 go: ['file.go'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
245 gomod: ['go.mod'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
246 gosum: ['go.sum', 'go.work.sum'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
247 gowork: ['go.work'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
248 gp: ['file.gp', '.gprc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
249 gpg: ['/.gnupg/options', '/.gnupg/gpg.conf', '/usr/any/gnupg/options.skel', 'any/.gnupg/gpg.conf', 'any/.gnupg/options', 'any/usr/any/gnupg/options.skel'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
250 grads: ['file.gs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
251 graphql: ['file.graphql', 'file.graphqls', 'file.gql'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
252 gretl: ['file.gretl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
253 groovy: ['file.gradle', 'file.groovy', 'Jenkinsfile'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
254 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
255 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
256 gsp: ['file.gsp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
257 gtkrc: ['.gtkrc', 'gtkrc', '.gtkrc-file', 'gtkrc-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
258 gyp: ['file.gyp', 'file.gypi'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
259 hack: ['file.hack', 'file.hackpartial'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
260 haml: ['file.haml'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
261 hamster: ['file.hsm'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
262 handlebars: ['file.hbs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
263 hare: ['file.ha'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
264 haskell: ['file.hs', 'file.hsc', 'file.hs-boot', 'file.hsig'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
265 haste: ['file.ht'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
266 hastepreproc: ['file.htpp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
267 hb: ['file.hb'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
268 hcl: ['file.hcl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
269 heex: ['file.heex'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
270 hercules: ['file.vc', 'file.ev', 'file.sum', 'file.errsum'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
271 hex: ['file.hex', 'file.h32'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
272 hgcommit: ['hg-editor-file.txt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
273 hjson: ['file.hjson'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
274 hlsplaylist: ['file.m3u', 'file.m3u8'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
275 hog: ['file.hog', 'snort.conf', 'vision.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
276 hollywood: ['file.hws'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
277 hoon: ['file.hoon'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
278 hostconf: ['/etc/host.conf', 'any/etc/host.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
279 hostsaccess: ['/etc/hosts.allow', '/etc/hosts.deny', 'any/etc/hosts.allow', 'any/etc/hosts.deny'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
280 html: ['file.html', 'file.htm', 'file.cshtml'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
281 htmlm4: ['file.html.m4'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
282 httest: ['file.htt', 'file.htb'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
283 i3config: ['/home/user/.i3/config', '/home/user/.config/i3/config', '/etc/i3/config', '/etc/xdg/i3/config'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
284 ibasic: ['file.iba', 'file.ibi'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
285 icemenu: ['/.icewm/menu', 'any/.icewm/menu'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
286 icon: ['file.icn'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
287 indent: ['.indent.pro', 'indentrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
288 inform: ['file.inf', 'file.INF'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
289 initng: ['/etc/initng/any/file.i', 'file.ii', 'any/etc/initng/any/file.i'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
290 inittab: ['inittab'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
291 ipfilter: ['ipf.conf', 'ipf6.conf', 'ipf.rules'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
292 iss: ['file.iss'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
293 ist: ['file.ist', 'file.mst'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
294 j: ['file.ijs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
295 jal: ['file.jal', 'file.JAL'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
296 jam: ['file.jpl', 'file.jpr', 'JAM-file.file', 'JAM.file', 'Prl-file.file', 'Prl.file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
297 java: ['file.java', 'file.jav'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
298 javacc: ['file.jj', 'file.jjt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
299 javascript: ['file.js', 'file.jsm', 'file.javascript', 'file.es', 'file.mjs', 'file.cjs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
300 'javascript.glimmer': ['file.gjs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
301 javascriptreact: ['file.jsx'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
302 jess: ['file.clp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
303 jgraph: ['file.jgr'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
304 jq: ['file.jq'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
305 jovial: ['file.jov', 'file.j73', 'file.jovial'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
306 jproperties: ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file', 'org.eclipse.xyz.prefs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
307 json: ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.prettierrc', '.firebaserc', '.stylelintrc', 'file.slnf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
308 json5: ['file.json5'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
309 jsonc: ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
310 jsonl: ['file.jsonl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
311 jsonnet: ['file.jsonnet', 'file.libsonnet'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
312 jsp: ['file.jsp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
313 julia: ['file.jl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
314 kconfig: ['Kconfig', 'Kconfig.debug', 'Kconfig.file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
315 kdl: ['file.kdl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
316 kivy: ['file.kv'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
317 kix: ['file.kix'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
318 kotlin: ['file.kt', 'file.ktm', 'file.kts'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
319 krl: ['file.sub', 'file.Sub', 'file.SUB'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
320 kscript: ['file.ks'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
321 kwt: ['file.k'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
322 lace: ['file.ace', 'file.ACE'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
323 latte: ['file.latte', 'file.lte'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
324 ld: ['file.ld'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
325 ldif: ['file.ldif'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
326 lean: ['file.lean'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
327 ledger: ['file.ldg', 'file.ledger', 'file.journal'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
328 less: ['file.less'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
329 lex: ['file.lex', 'file.l', 'file.lxx', 'file.l++'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
330 lftp: ['lftp.conf', '.lftprc', 'anylftp/rc', 'lftp/rc', 'some-lftp/rc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
331 lhaskell: ['file.lhs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
332 libao: ['/etc/libao.conf', '/.libao', 'any/.libao', 'any/etc/libao.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
333 lifelines: ['file.ll'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
334 lilo: ['lilo.conf', 'lilo.conf-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
335 lilypond: ['file.ly', 'file.ily'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
336 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
337 liquid: ['file.liquid'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
338 lisp: ['file.lsp', 'file.lisp', 'file.asd', 'file.el', 'file.cl', '.emacs', '.sawfishrc', 'sbclrc', '.sbclrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
339 lite: ['file.lite', 'file.lt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
340 litestep: ['/LiteStep/any/file.rc', 'any/LiteStep/any/file.rc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
341 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
342 livebook: ['file.livemd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
343 loginaccess: ['/etc/login.access', 'any/etc/login.access'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
344 logindefs: ['/etc/login.defs', 'any/etc/login.defs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
345 logtalk: ['file.lgt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
346 lotos: ['file.lot', 'file.lotos'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
347 lout: ['file.lou', 'file.lout'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
348 lpc: ['file.lpc', 'file.ulpc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
349 lsl: ['file.lsl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
350 lss: ['file.lss'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
351 lua: ['file.lua', 'file.rockspec', 'file.nse', '.luacheckrc', '.busted'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
352 luau: ['file.luau'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
353 lynx: ['lynx.cfg'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
354 lyrics: ['file.lrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
355 m3build: ['m3makefile', 'm3overrides'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
356 m3quake: ['file.quake', 'cm3.cfg'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
357 m4: ['file.at'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
358 mail: ['snd.123', '.letter', '.letter.123', '.followup', '.article', '.article.123', 'pico.123', 'mutt-xx-xxx', 'muttng-xx-xxx', 'ae123.txt', 'file.eml', 'reportbug-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
359 mailaliases: ['/etc/mail/aliases', '/etc/aliases', 'any/etc/aliases', 'any/etc/mail/aliases'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
360 mailcap: ['.mailcap', 'mailcap'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
361 make: ['file.mk', 'file.mak', 'file.dsp', 'makefile', 'Makefile', 'makefile-file', 'Makefile-file', 'some-makefile', 'some-Makefile'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
362 mallard: ['file.page'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
363 man: ['file.man'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
364 manconf: ['/etc/man.conf', 'man.config', 'any/etc/man.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
365 map: ['file.map'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
366 maple: ['file.mv', 'file.mpl', 'file.mws'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
367 markdown: ['file.markdown', 'file.mdown', 'file.mkd', 'file.mkdn', 'file.mdwn', 'file.md'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
368 mason: ['file.mason', 'file.mhtml', 'file.comp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
369 master: ['file.mas', 'file.master'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
370 matlab: ['file.m'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
371 maxima: ['file.demo', 'file.dmt', 'file.dm1', 'file.dm2', 'file.dm3', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
372 'file.wxm', 'maxima-init.mac'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
373 mel: ['file.mel'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
374 mermaid: ['file.mmd', 'file.mmdc', 'file.mermaid'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
375 meson: ['meson.build', 'meson.options', 'meson_options.txt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
376 messages: ['/log/auth', '/log/cron', '/log/daemon', '/log/debug', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
377 '/log/kern', '/log/lpr', '/log/mail', '/log/messages', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
378 '/log/news/news', '/log/syslog', '/log/user', '/log/auth.log', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
379 '/log/cron.log', '/log/daemon.log', '/log/debug.log', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
380 '/log/kern.log', '/log/lpr.log', '/log/mail.log', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
381 '/log/messages.log', '/log/news/news.log', '/log/syslog.log', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
382 '/log/user.log', '/log/auth.err', '/log/cron.err', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
383 '/log/daemon.err', '/log/debug.err', '/log/kern.err', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
384 '/log/lpr.err', '/log/mail.err', '/log/messages.err', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
385 '/log/news/news.err', '/log/syslog.err', '/log/user.err', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
386 '/log/auth.info', '/log/cron.info', '/log/daemon.info', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
387 '/log/debug.info', '/log/kern.info', '/log/lpr.info', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
388 '/log/mail.info', '/log/messages.info', '/log/news/news.info', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
389 '/log/syslog.info', '/log/user.info', '/log/auth.warn', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
390 '/log/cron.warn', '/log/daemon.warn', '/log/debug.warn', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
391 '/log/kern.warn', '/log/lpr.warn', '/log/mail.warn', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
392 '/log/messages.warn', '/log/news/news.warn', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
393 '/log/syslog.warn', '/log/user.warn', '/log/auth.crit', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
394 '/log/cron.crit', '/log/daemon.crit', '/log/debug.crit', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
395 '/log/kern.crit', '/log/lpr.crit', '/log/mail.crit', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
396 '/log/messages.crit', '/log/news/news.crit', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
397 '/log/syslog.crit', '/log/user.crit', '/log/auth.notice', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
398 '/log/cron.notice', '/log/daemon.notice', '/log/debug.notice', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
399 '/log/kern.notice', '/log/lpr.notice', '/log/mail.notice', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
400 '/log/messages.notice', '/log/news/news.notice', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
401 '/log/syslog.notice', '/log/user.notice'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
402 mf: ['file.mf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
403 mgl: ['file.mgl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
404 mgp: ['file.mgp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
405 mib: ['file.mib', 'file.my'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
406 mix: ['file.mix', 'file.mixal'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
407 mma: ['file.nb'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
408 mmp: ['file.mmp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
409 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
410 modula2: ['file.m2', 'file.mi'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
411 modula3: ['file.m3', 'file.mg', 'file.i3', 'file.ig', 'file.lm3'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
412 monk: ['file.isc', 'file.monk', 'file.ssc', 'file.tsc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
413 moo: ['file.moo'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
414 moonscript: ['file.moon'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
415 move: ['file.move'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
416 mp: ['file.mp', 'file.mpxl', 'file.mpiv', 'file.mpvi'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
417 mplayerconf: ['mplayer.conf', '/.mplayer/config', 'any/.mplayer/config'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
418 mrxvtrc: ['mrxvtrc', '.mrxvtrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
419 msidl: ['file.odl', 'file.mof'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
420 msql: ['file.msql'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
421 mupad: ['file.mu'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
422 mush: ['file.mush'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
423 muttrc: ['Muttngrc', 'Muttrc', '.muttngrc', '.muttngrc-file', '.muttrc', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
424 '.muttrc-file', '/.mutt/muttngrc', '/.mutt/muttngrc-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
425 '/.mutt/muttrc', '/.mutt/muttrc-file', '/.muttng/muttngrc', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
426 '/.muttng/muttngrc-file', '/.muttng/muttrc', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
427 '/.muttng/muttrc-file', '/etc/Muttrc.d/file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
428 '/etc/Muttrc.d/file.rc', 'Muttngrc-file', 'Muttrc-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
429 'any/.mutt/muttngrc', 'any/.mutt/muttngrc-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
430 'any/.mutt/muttrc', 'any/.mutt/muttrc-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
431 'any/.muttng/muttngrc', 'any/.muttng/muttngrc-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
432 'any/.muttng/muttrc', 'any/.muttng/muttrc-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
433 'any/etc/Muttrc.d/file', 'muttngrc', 'muttngrc-file', 'muttrc', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
434 'muttrc-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
435 mysql: ['file.mysql'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
436 n1ql: ['file.n1ql', 'file.nql'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
437 named: ['namedfile.conf', 'rndcfile.conf', 'named-file.conf', 'named.conf', 'rndc-file.conf', 'rndc-file.key', 'rndc.conf', 'rndc.key'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
438 nanorc: ['/etc/nanorc', 'file.nanorc', 'any/etc/nanorc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
439 natural: ['file.NSA', 'file.NSC', 'file.NSG', 'file.NSL', 'file.NSM', 'file.NSN', 'file.NSP', 'file.NSS'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
440 ncf: ['file.ncf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
441 neomuttrc: ['Neomuttrc', '.neomuttrc', '.neomuttrc-file', '/.neomutt/neomuttrc', '/.neomutt/neomuttrc-file', 'Neomuttrc', 'Neomuttrc-file', 'any/.neomutt/neomuttrc', 'any/.neomutt/neomuttrc-file', 'neomuttrc', 'neomuttrc-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
442 netrc: ['.netrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
443 nginx: ['file.nginx', 'nginxfile.conf', 'filenginx.conf', 'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
444 nim: ['file.nim', 'file.nims', 'file.nimble'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
445 ninja: ['file.ninja'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
446 nix: ['file.nix'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
447 nqc: ['file.nqc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
448 nroff: ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
449 nsis: ['file.nsi', 'file.nsh'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
450 nu: ['env.nu', 'config.nu'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
451 obj: ['file.obj'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
452 obse: ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
453 ocaml: ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
454 occam: ['file.occ'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
455 octave: ['octaverc', '.octaverc', 'octave.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
456 odin: ['file.odin'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
457 omnimark: ['file.xom', 'file.xin'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
458 opam: ['opam', 'file.opam', 'file.opam.template'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
459 openroad: ['file.or'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
460 openscad: ['file.scad'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
461 openvpn: ['file.ovpn', '/etc/openvpn/client/client.conf', '/usr/share/openvpn/examples/server.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
462 opl: ['file.OPL', 'file.OPl', 'file.OpL', 'file.Opl', 'file.oPL', 'file.oPl', 'file.opL', 'file.opl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
463 ora: ['file.ora'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
464 org: ['file.org', 'file.org_archive'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
465 pamconf: ['/etc/pam.conf', '/etc/pam.d/file', 'any/etc/pam.conf', 'any/etc/pam.d/file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
466 pamenv: ['/etc/security/pam_env.conf', '/home/user/.pam_environment', '.pam_environment', 'pam_env.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
467 papp: ['file.papp', 'file.pxml', 'file.pxsl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
468 pascal: ['file.pas', 'file.dpr', 'file.lpr'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
469 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
470 pbtxt: ['file.pbtxt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
471 pccts: ['file.g'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
472 pcmk: ['file.pcmk'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
473 pdf: ['file.pdf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
474 perl: ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc', '.latexmkrc', 'latexmkrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
475 pf: ['pf.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
476 pfmain: ['main.cf', 'main.cf.proto'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
477 php: ['file.php', 'file.php9', 'file.phtml', 'file.ctp', 'file.phpt', 'file.theme'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
478 pike: ['file.pike', 'file.pmod'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
479 pilrc: ['file.rcp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
480 pine: ['.pinerc', 'pinerc', '.pinercex', 'pinercex'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
481 pinfo: ['/etc/pinforc', '/.pinforc', 'any/.pinforc', 'any/etc/pinforc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
482 pli: ['file.pli', 'file.pl1'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
483 plm: ['file.plm', 'file.p36', 'file.pac'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
484 plp: ['file.plp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
485 plsql: ['file.pls', 'file.plsql'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
486 po: ['file.po', 'file.pot'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
487 pod: ['file.pod'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
488 poefilter: ['file.filter'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
489 poke: ['file.pk'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
490 pony: ['file.pony'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
491 postscr: ['file.ps', 'file.pfa', 'file.afm', 'file.eps', 'file.epsf', 'file.epsi', 'file.ai'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
492 pov: ['file.pov'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
493 povini: ['.povrayrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
494 ppd: ['file.ppd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
495 ppwiz: ['file.it', 'file.ih'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
496 prisma: ['file.prisma'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
497 privoxy: ['file.action'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
498 proc: ['file.pc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
499 procmail: ['.procmail', '.procmailrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
500 prolog: ['file.pdb'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
501 promela: ['file.pml'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
502 proto: ['file.proto'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
503 protocols: ['/etc/protocols', 'any/etc/protocols'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
504 ps1: ['file.ps1', 'file.psd1', 'file.psm1', 'file.pssc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
505 ps1xml: ['file.ps1xml'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
506 psf: ['file.psf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
507 psl: ['file.psl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
508 pug: ['file.pug'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
509 puppet: ['file.pp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
510 pyret: ['file.arr'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
511 pyrex: ['file.pyx', 'file.pxd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
512 python: ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
513 ql: ['file.ql', 'file.qll'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
514 qmldir: ['qmldir'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
515 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
516 quarto: ['file.qmd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
517 r: ['file.r', '.Rprofile', 'Rprofile', 'Rprofile.site'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
518 racket: ['file.rkt', 'file.rktd', 'file.rktl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
519 radiance: ['file.rad', 'file.mat'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
520 raku: ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
521 raml: ['file.raml'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
522 ratpoison: ['.ratpoisonrc', 'ratpoisonrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
523 rbs: ['file.rbs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
524 rc: ['file.rc', 'file.rch'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
525 rcs: ['file,v'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
526 readline: ['.inputrc', 'inputrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
527 rego: ['file.rego'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
528 remind: ['.reminders', 'file.remind', 'file.rem', '.reminders-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
529 rescript: ['file.res', 'file.resi'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
530 resolv: ['resolv.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
531 reva: ['file.frt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
532 rexx: ['file.rex', 'file.orx', 'file.rxo', 'file.rxj', 'file.jrexx', 'file.rexxj', 'file.rexx', 'file.testGroup', 'file.testUnit'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
533 rhelp: ['file.rd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
534 rib: ['file.rib'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
535 rmd: ['file.rmd', 'file.smd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
536 rnc: ['file.rnc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
537 rng: ['file.rng'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
538 rnoweb: ['file.rnw', 'file.snw'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
539 rpgle: ['file.rpgle', 'file.rpgleinc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
540 robot: ['file.robot', 'file.resource'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
541 robots: ['robots.txt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
542 ron: ['file.ron'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
543 routeros: ['file.rsc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
544 rpcgen: ['file.x'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
545 rpl: ['file.rpl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
546 rrst: ['file.rrst', 'file.srst'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
547 rst: ['file.rst'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
548 rtf: ['file.rtf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
549 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
550 rust: ['file.rs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
551 samba: ['smb.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
552 sas: ['file.sas'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
553 sass: ['file.sass'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
554 sather: ['file.sa'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
555 sbt: ['file.sbt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
556 scala: ['file.scala'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
557 scheme: ['file.scm', 'file.ss', 'file.sld'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
558 scilab: ['file.sci', 'file.sce'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
559 screen: ['.screenrc', 'screenrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
560 scss: ['file.scss'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
561 sd: ['file.sd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
562 sdc: ['file.sdc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
563 sdl: ['file.sdl', 'file.pr'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
564 sed: ['file.sed'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
565 sensors: ['/etc/sensors.conf', '/etc/sensors3.conf', '/etc/sensors.d/file', 'any/etc/sensors.conf', 'any/etc/sensors3.conf', 'any/etc/sensors.d/file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
566 services: ['/etc/services', 'any/etc/services'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
567 setserial: ['/etc/serial.conf', 'any/etc/serial.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
568 sexplib: ['file.sexp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
569 sh: ['.bashrc', 'file.bash', '/usr/share/doc/bash-completion/filter.sh', '/etc/udev/cdsymlinks.conf', 'any/etc/udev/cdsymlinks.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
570 sieve: ['file.siv', 'file.sieve'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
571 sil: ['file.sil'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
572 simula: ['file.sim'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
573 sinda: ['file.sin', 'file.s85'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
574 sisu: ['file.sst', 'file.ssm', 'file.ssi', 'file.-sst', 'file._sst', 'file.sst.meta', 'file.-sst.meta', 'file._sst.meta'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
575 skill: ['file.il', 'file.ils', 'file.cdf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
576 cdc: ['file.cdc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
577 slang: ['file.sl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
578 sage: ['file.sage'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
579 slice: ['file.ice'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
580 slpconf: ['/etc/slp.conf', 'any/etc/slp.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
581 slpreg: ['/etc/slp.reg', 'any/etc/slp.reg'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
582 slpspi: ['/etc/slp.spi', 'any/etc/slp.spi'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
583 slrnrc: ['.slrnrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
584 slrnsc: ['file.score'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
585 sm: ['sendmail.cf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
586 smali: ['file.smali'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
587 smarty: ['file.tpl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
588 smcl: ['file.hlp', 'file.ihlp', 'file.smcl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
589 smith: ['file.smt', 'file.smith'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
590 smithy: ['file.smithy'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
591 sml: ['file.sml'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
592 snobol4: ['file.sno', 'file.spt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
593 solidity: ['file.sol'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
594 solution: ['file.sln'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
595 sparql: ['file.rq', 'file.sparql'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
596 spec: ['file.spec'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
597 spice: ['file.sp', 'file.spice'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
598 spup: ['file.speedup', 'file.spdata', 'file.spd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
599 spyce: ['file.spy', 'file.spi'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
600 sql: ['file.tyb', 'file.tyc', 'file.pkb', 'file.pks'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
601 sqlj: ['file.sqlj'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
602 prql: ['file.prql'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
603 sqr: ['file.sqr', 'file.sqi'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
604 squid: ['squid.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
605 squirrel: ['file.nut'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
606 srec: ['file.s19', 'file.s28', 'file.s37', 'file.mot', 'file.srec'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
607 srt: ['file.srt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
608 ssa: ['file.ass', 'file.ssa'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
609 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
610 sshdconfig: ['sshd_config', '/etc/ssh/sshd_config.d/file.conf', 'any/etc/ssh/sshd_config.d/file.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
611 st: ['file.st'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
612 starlark: ['file.ipd', 'file.star', 'file.starlark'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
613 stata: ['file.ado', 'file.do', 'file.imata', 'file.mata'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
614 stp: ['file.stp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
615 sudoers: ['any/etc/sudoers', 'sudoers.tmp', '/etc/sudoers', 'any/etc/sudoers.d/file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
616 supercollider: ['file.quark'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
617 surface: ['file.sface'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
618 svelte: ['file.svelte'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
619 svg: ['file.svg'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
620 svn: ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
621 swayconfig: ['/home/user/.sway/config', '/home/user/.config/sway/config', '/etc/sway/config', '/etc/xdg/sway/config'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
622 swift: ['file.swift'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
623 swiftgyb: ['file.swift.gyb'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
624 sysctl: ['/etc/sysctl.conf', '/etc/sysctl.d/file.conf', 'any/etc/sysctl.conf', 'any/etc/sysctl.d/file.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
625 systemd: ['any/systemd/file.automount', 'any/systemd/file.dnssd', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
626 'any/systemd/file.link', 'any/systemd/file.mount', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
627 'any/systemd/file.netdev', 'any/systemd/file.network', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
628 'any/systemd/file.nspawn', 'any/systemd/file.path', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
629 'any/systemd/file.service', 'any/systemd/file.slice', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
630 'any/systemd/file.socket', 'any/systemd/file.swap', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
631 'any/systemd/file.target', 'any/systemd/file.timer', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
632 '/etc/systemd/some.conf.d/file.conf', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
633 '/etc/systemd/system/some.d/file.conf', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
634 '/etc/systemd/system/some.d/.#file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
635 '/etc/systemd/system/.#otherfile', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
636 '/home/user/.config/systemd/user/some.d/mine.conf', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
637 '/home/user/.config/systemd/user/some.d/.#file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
638 '/home/user/.config/systemd/user/.#otherfile', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
639 '/.config/systemd/user/.#', '/.config/systemd/user/.#-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
640 '/.config/systemd/user/file.d/.#', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
641 '/.config/systemd/user/file.d/.#-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
642 '/.config/systemd/user/file.d/file.conf', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
643 '/etc/systemd/file.conf.d/file.conf', '/etc/systemd/system/.#', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
644 '/etc/systemd/system/.#-file', '/etc/systemd/system/file.d/.#', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
645 '/etc/systemd/system/file.d/.#-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
646 '/etc/systemd/system/file.d/file.conf', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
647 '/systemd/file.automount', '/systemd/file.dnssd', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
648 '/systemd/file.link', '/systemd/file.mount', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
649 '/systemd/file.netdev', '/systemd/file.network', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
650 '/systemd/file.nspawn', '/systemd/file.path', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
651 '/systemd/file.service', '/systemd/file.slice', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
652 '/systemd/file.socket', '/systemd/file.swap', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
653 '/systemd/file.target', '/systemd/file.timer', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
654 'any/.config/systemd/user/.#', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
655 'any/.config/systemd/user/.#-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
656 'any/.config/systemd/user/file.d/.#', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
657 'any/.config/systemd/user/file.d/.#-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
658 'any/.config/systemd/user/file.d/file.conf', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
659 'any/etc/systemd/file.conf.d/file.conf', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
660 'any/etc/systemd/system/.#', 'any/etc/systemd/system/.#-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
661 'any/etc/systemd/system/file.d/.#', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
662 'any/etc/systemd/system/file.d/.#-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
663 'any/etc/systemd/system/file.d/file.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
664 systemverilog: ['file.sv', 'file.svh'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
665 tags: ['tags'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
666 tak: ['file.tak'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
667 tal: ['file.tal'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
668 taskdata: ['pending.data', 'completed.data', 'undo.data'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
669 taskedit: ['file.task'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
670 tcl: ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
671 tablegen: ['file.td'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
672 teal: ['file.tl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
673 template: ['file.tmpl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
674 teraterm: ['file.ttl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
675 terminfo: ['file.ti'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
676 'terraform-vars': ['file.tfvars'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
677 tex: ['file.latex', 'file.sty', 'file.dtx', 'file.ltx', 'file.bbl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
678 texinfo: ['file.texinfo', 'file.texi', 'file.txi'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
679 texmf: ['texmf.cnf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
680 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
681 tf: ['file.tf', '.tfrc', 'tfrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
682 thrift: ['file.thrift'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
683 tidy: ['.tidyrc', 'tidyrc', 'tidy.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
684 tilde: ['file.t.html'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
685 tla: ['file.tla'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
686 tli: ['file.tli'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
687 tmux: ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf', 'tmux.conf.local'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
688 toml: ['file.toml', 'Gopkg.lock', 'Pipfile', '/home/user/.cargo/config'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
689 tpp: ['file.tpp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
690 treetop: ['file.treetop'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
691 trustees: ['trustees.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
692 tsalt: ['file.slt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
693 tsscl: ['file.tsscl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
694 tssgm: ['file.tssgm'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
695 tssop: ['file.tssop'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
696 tsv: ['file.tsv'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
697 twig: ['file.twig'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
698 typescript: ['file.mts', 'file.cts'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
699 'typescript.glimmer': ['file.gts'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
700 typescriptreact: ['file.tsx'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
701 ungrammar: ['file.ungram'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
702 uc: ['file.uc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
703 udevconf: ['/etc/udev/udev.conf', 'any/etc/udev/udev.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
704 udevperm: ['/etc/udev/permissions.d/file.permissions', 'any/etc/udev/permissions.d/file.permissions'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
705 udevrules: ['/etc/udev/rules.d/file.rules', '/usr/lib/udev/rules.d/file.rules', '/lib/udev/rules.d/file.rules'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
706 uil: ['file.uit', 'file.uil'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
707 updatedb: ['/etc/updatedb.conf', 'any/etc/updatedb.conf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
708 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
709 upstreamdat: ['upstream.dat', 'UPSTREAM.DAT', 'upstream.file.dat', 'UPSTREAM.FILE.DAT', 'file.upstream.dat', 'FILE.UPSTREAM.DAT'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
710 upstreaminstalllog: ['upstreaminstall.log', 'UPSTREAMINSTALL.LOG', 'upstreaminstall.file.log', 'UPSTREAMINSTALL.FILE.LOG', 'file.upstreaminstall.log', 'FILE.UPSTREAMINSTALL.LOG'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
711 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
712 usd: ['file.usda', 'file.usd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
713 usserverlog: ['usserver.log', 'USSERVER.LOG', 'usserver.file.log', 'USSERVER.FILE.LOG', 'file.usserver.log', 'FILE.USSERVER.LOG'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
714 usw2kagtlog: ['usw2kagt.log', 'USW2KAGT.LOG', 'usw2kagt.file.log', 'USW2KAGT.FILE.LOG', 'file.usw2kagt.log', 'FILE.USW2KAGT.LOG'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
715 vala: ['file.vala'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
716 vb: ['file.sba', 'file.vb', 'file.vbs', 'file.dsm', 'file.ctl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
717 vdf: ['file.vdf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
718 vdmpp: ['file.vpp', 'file.vdmpp'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
719 vdmrt: ['file.vdmrt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
720 vdmsl: ['file.vdm', 'file.vdmsl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
721 vera: ['file.vr', 'file.vri', 'file.vrh'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
722 verilogams: ['file.va', 'file.vams'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
723 vgrindefs: ['vgrindefs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
724 vhdl: ['file.hdl', 'file.vhd', 'file.vhdl', 'file.vbe', 'file.vst', 'file.vhdl_123', 'file.vho', 'some.vhdl_1', 'some.vhdl_1-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
725 vhs: ['file.tape'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
726 vim: ['file.vim', 'file.vba', '.exrc', '_exrc', 'some-vimrc', 'some-vimrc-file', 'vimrc', 'vimrc-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
727 viminfo: ['.viminfo', '_viminfo'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
728 vmasm: ['file.mar'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
729 voscm: ['file.cm'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
730 vrml: ['file.wrl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
731 vroom: ['file.vroom'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
732 vue: ['file.vue'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
733 wat: ['file.wat'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
734 wast: ['file.wast'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
735 wdl: ['file.wdl'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
736 webmacro: ['file.wm'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
737 wget: ['.wgetrc', 'wgetrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
738 wget2: ['.wget2rc', 'wget2rc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
739 winbatch: ['file.wbt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
740 wit: ['file.wit'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
741 wml: ['file.wml'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
742 wsh: ['file.wsf', 'file.wsc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
743 wsml: ['file.wsml'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
744 wvdial: ['wvdial.conf', '.wvdialrc'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
745 xdefaults: ['.Xdefaults', '.Xpdefaults', '.Xresources', 'xdm-config', 'file.ad', '/Xresources/file', '/app-defaults/file', 'Xresources', 'Xresources-file', 'any/Xresources/file', 'any/app-defaults/file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
746 xf86conf: ['xorg.conf', 'xorg.conf-4'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
747 xhtml: ['file.xhtml', 'file.xht'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
748 xinetd: ['/etc/xinetd.conf', '/etc/xinetd.d/file', 'any/etc/xinetd.conf', 'any/etc/xinetd.d/file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
749 xmath: ['file.msc', 'file.msf'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
750 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'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
751 xmodmap: ['anyXmodmap', 'Xmodmap', 'some-Xmodmap', 'some-xmodmap', 'some-xmodmap-file', 'xmodmap', 'xmodmap-file'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
752 xpm: ['file.xpm'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
753 xpm2: ['file.xpm2'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
754 xquery: ['file.xq', 'file.xql', 'file.xqm', 'file.xquery', 'file.xqy'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
755 xs: ['file.xs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
756 xsd: ['file.xsd'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
757 xslt: ['file.xsl', 'file.xslt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
758 yacc: ['file.yy', 'file.yxx', 'file.y++'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
759 yaml: ['file.yaml', 'file.yml', '.clangd', '.clang-format', '.clang-tidy'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
760 yang: ['file.yang'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
761 yuck: ['file.yuck'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
762 z8a: ['file.z8a'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
763 zig: ['file.zig'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
764 zimbu: ['file.zu'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
765 zimbutempl: ['file.zut'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
766 zir: ['file.zir'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
767 zsh: ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
768 '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
769 '.zcompdump-file', '.zlog', '.zlog-file', '.zsh', '.zsh-file', |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
770 'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file'], |
32517
7e989714b555
patch 9.0.1590: filetype test has trailing white space
Bram Moolenaar <Bram@vim.org>
parents:
32515
diff
changeset
|
771 |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
772 help: [$VIMRUNTIME .. '/doc/help.txt'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
773 } |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
774 enddef |
12027
c2aa4af29251
patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents:
11459
diff
changeset
|
775 |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
776 def s:GetFilenameCaseChecks(): dict<list<string>> |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
777 return { |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
778 modula2: ['file.DEF'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
779 bzl: ['file.BUILD', 'BUILD'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
780 } |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
781 enddef |
12029
a39e7e2ae7da
patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12027
diff
changeset
|
782 |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
783 def s:CheckItems(checks: dict<list<string>>) |
22673
67aa7507ea2e
patch 8.2.1885: filetype tests unnessarily creates swap files
Bram Moolenaar <Bram@vim.org>
parents:
22557
diff
changeset
|
784 set noswapfile |
32477
0a0b9371957f
patch 9.0.1570: some tests are slow
Bram Moolenaar <Bram@vim.org>
parents:
32467
diff
changeset
|
785 |
0a0b9371957f
patch 9.0.1570: some tests are slow
Bram Moolenaar <Bram@vim.org>
parents:
32467
diff
changeset
|
786 for [ft, names] in items(checks) |
12027
c2aa4af29251
patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents:
11459
diff
changeset
|
787 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
|
788 new |
c2aa4af29251
patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents:
11459
diff
changeset
|
789 try |
32477
0a0b9371957f
patch 9.0.1570: some tests are slow
Bram Moolenaar <Bram@vim.org>
parents:
32467
diff
changeset
|
790 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
|
791 catch |
32477
0a0b9371957f
patch 9.0.1570: some tests are slow
Bram Moolenaar <Bram@vim.org>
parents:
32467
diff
changeset
|
792 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
|
793 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
|
794 if &filetype == '' && &readonly |
32477
0a0b9371957f
patch 9.0.1570: some tests are slow
Bram Moolenaar <Bram@vim.org>
parents:
32467
diff
changeset
|
795 # File exists but not able to edit it (permission denied) |
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
|
796 else |
32477
0a0b9371957f
patch 9.0.1570: some tests are slow
Bram Moolenaar <Bram@vim.org>
parents:
32467
diff
changeset
|
797 var expected = ft == 'none' ? '' : ft |
0a0b9371957f
patch 9.0.1570: some tests are slow
Bram Moolenaar <Bram@vim.org>
parents:
32467
diff
changeset
|
798 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
|
799 endif |
12027
c2aa4af29251
patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents:
11459
diff
changeset
|
800 bwipe! |
c2aa4af29251
patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents:
11459
diff
changeset
|
801 endfor |
c2aa4af29251
patch 8.0.0894: there is no test for runtime filetype detection
Christian Brabandt <cb@256bit.org>
parents:
11459
diff
changeset
|
802 endfor |
32477
0a0b9371957f
patch 9.0.1570: some tests are slow
Bram Moolenaar <Bram@vim.org>
parents:
32467
diff
changeset
|
803 |
22673
67aa7507ea2e
patch 8.2.1885: filetype tests unnessarily creates swap files
Bram Moolenaar <Bram@vim.org>
parents:
22557
diff
changeset
|
804 set swapfile& |
32477
0a0b9371957f
patch 9.0.1570: some tests are slow
Bram Moolenaar <Bram@vim.org>
parents:
32467
diff
changeset
|
805 enddef |
12029
a39e7e2ae7da
patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12027
diff
changeset
|
806 |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
807 def Test_filetype_detection() |
12029
a39e7e2ae7da
patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12027
diff
changeset
|
808 filetype on |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
809 CheckItems(s:GetFilenameChecks()) |
12029
a39e7e2ae7da
patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12027
diff
changeset
|
810 if has('fname_case') |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
811 CheckItems(s:GetFilenameCaseChecks()) |
12029
a39e7e2ae7da
patch 8.0.0895: filetype test fails on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12027
diff
changeset
|
812 endif |
12255
d5710baf5cf7
patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents:
12052
diff
changeset
|
813 filetype off |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
814 enddef |
12255
d5710baf5cf7
patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents:
12052
diff
changeset
|
815 |
32266
769df9d385e0
patch 9.0.1464: strace filetype detection is expensive
Bram Moolenaar <Bram@vim.org>
parents:
32248
diff
changeset
|
816 " Content lines that should not result in filetype detection |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
817 def s:GetFalsePositiveChecks(): dict<list<list<string>>> |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
818 return { |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
819 '': [['test execve("/usr/bin/pstree", ["pstree"], 0x7ff0 /* 63 vars */) = 0']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
820 } |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
821 enddef |
32266
769df9d385e0
patch 9.0.1464: strace filetype detection is expensive
Bram Moolenaar <Bram@vim.org>
parents:
32248
diff
changeset
|
822 |
12255
d5710baf5cf7
patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents:
12052
diff
changeset
|
823 " Filetypes detected from the file contents by scripts.vim |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
824 def s:GetScriptChecks(): dict<list<list<string>>> |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
825 return { |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
826 virata: [['% Virata'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
827 ['', '% Virata'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
828 ['', '', '% Virata'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
829 ['', '', '', '% Virata'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
830 ['', '', '', '', '% Virata']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
831 strace: [['execve("/usr/bin/pstree", ["pstree"], 0x7ff0 /* 63 vars */) = 0'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
832 ['15:17:47 execve("/usr/bin/pstree", ["pstree"], ... "_=/usr/bin/strace"]) = 0'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
833 ['__libc_start_main and something']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
834 clojure: [['#!/path/clojure']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
835 scala: [['#!/path/scala']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
836 sh: [['#!/path/sh'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
837 ['#!/path/bash'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
838 ['#!/path/bash2'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
839 ['#!/path/dash'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
840 ['#!/path/ksh'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
841 ['#!/path/ksh93']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
842 csh: [['#!/path/csh']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
843 tcsh: [['#!/path/tcsh']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
844 zsh: [['#!/path/zsh']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
845 tcl: [['#!/path/tclsh'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
846 ['#!/path/wish'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
847 ['#!/path/expectk'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
848 ['#!/path/itclsh'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
849 ['#!/path/itkwish']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
850 expect: [['#!/path/expect']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
851 gnuplot: [['#!/path/gnuplot']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
852 make: [['#!/path/make']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
853 pike: [['#!/path/pike'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
854 ['#!/path/pike0'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
855 ['#!/path/pike9']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
856 lua: [['#!/path/lua']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
857 raku: [['#!/path/raku']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
858 perl: [['#!/path/perl']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
859 php: [['#!/path/php']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
860 python: [['#!/path/python'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
861 ['#!/path/python2'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
862 ['#!/path/python3']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
863 groovy: [['#!/path/groovy']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
864 ruby: [['#!/path/ruby']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
865 javascript: [['#!/path/node'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
866 ['#!/path/js'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
867 ['#!/path/nodejs'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
868 ['#!/path/rhino']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
869 bc: [['#!/path/bc']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
870 sed: [['#!/path/sed'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
871 ['#n'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
872 ['#n comment']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
873 ocaml: [['#!/path/ocaml']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
874 awk: [['#!/path/awk'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
875 ['#!/path/gawk']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
876 wml: [['#!/path/wml']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
877 scheme: [['#!/path/scheme'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
878 ['#!/path/guile']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
879 cfengine: [['#!/path/cfengine']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
880 erlang: [['#!/path/escript']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
881 haskell: [['#!/path/haskell']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
882 cpp: [['// Standard iostream objects -*- C++ -*-'], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
883 ['// -*- C++ -*-']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
884 yaml: [['%YAML 1.2']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
885 pascal: [['#!/path/instantfpc']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
886 fennel: [['#!/path/fennel']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
887 routeros: [['#!/path/rsc']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
888 fish: [['#!/path/fish']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
889 forth: [['#!/path/gforth']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
890 icon: [['#!/path/icon']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
891 } |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
892 enddef |
12255
d5710baf5cf7
patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents:
12052
diff
changeset
|
893 |
20756
33a14786a0e4
patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents:
20749
diff
changeset
|
894 " Various forms of "env" optional arguments. |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
895 def s:GetScriptEnvChecks(): dict<list<list<string>>> |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
896 return { |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
897 perl: [['#!/usr/bin/env VAR=val perl']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
898 scala: [['#!/usr/bin/env VAR=val VVAR=vval scala']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
899 awk: [['#!/usr/bin/env VAR=val -i awk']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
900 scheme: [['#!/usr/bin/env VAR=val --ignore-environment scheme']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
901 python: [['#!/usr/bin/env VAR=val -S python -w -T']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
902 wml: [['#!/usr/bin/env VAR=val --split-string wml']], |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
903 } |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
904 enddef |
20756
33a14786a0e4
patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents:
20749
diff
changeset
|
905 |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
906 def s:Run_script_detection(test_dict: dict<list<list<string>>>) |
12255
d5710baf5cf7
patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents:
12052
diff
changeset
|
907 filetype on |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
908 for [ft, files] in items(test_dict) |
12255
d5710baf5cf7
patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents:
12052
diff
changeset
|
909 for file in files |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
910 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
|
911 split Xtest |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
912 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
|
913 bwipe! |
d5710baf5cf7
patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents:
12052
diff
changeset
|
914 endfor |
d5710baf5cf7
patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents:
12052
diff
changeset
|
915 endfor |
d5710baf5cf7
patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents:
12052
diff
changeset
|
916 filetype off |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
917 enddef |
12255
d5710baf5cf7
patch 8.0.1007: no test for filetype detection for scripts
Christian Brabandt <cb@256bit.org>
parents:
12052
diff
changeset
|
918 |
32515
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
919 def Test_script_detection() |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
920 Run_script_detection(GetFalsePositiveChecks()) |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
921 Run_script_detection(GetScriptChecks()) |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
922 Run_script_detection(GetScriptEnvChecks()) |
d1794b2317b8
patch 9.0.1589: filetype test contains too many special characters
Bram Moolenaar <Bram@vim.org>
parents:
32511
diff
changeset
|
923 enddef |
20756
33a14786a0e4
patch 8.2.0930: script filetype detection trips over env -S argument
Bram Moolenaar <Bram@vim.org>
parents:
20749
diff
changeset
|
924 |
15097
1946487c74ba
patch 8.1.0559: command line completion not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
14991
diff
changeset
|
925 func Test_setfiletype_completion() |
1946487c74ba
patch 8.1.0559: command line completion not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
14991
diff
changeset
|
926 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
|
927 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
|
928 endfunc |
19425
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
929 |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
930 " 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
|
931 func Test_emptybuf_ftdetect() |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
932 new |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
933 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
|
934 call assert_equal('', &filetype) |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
935 filetype detect |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
936 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
|
937 close! |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
938 endfunc |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
939 |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
940 " 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
|
941 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
|
942 new Xtest.vim |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
943 filetype indent on |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
944 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
|
945 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
|
946 \ 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
|
947 filetype indent off |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
948 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
|
949 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
|
950 \ 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
|
951 close |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
952 endfunc |
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
953 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
954 """"""""""""""""""""""""""""""""""""""""""""""""" |
28483
62a0dd56466c
patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28445
diff
changeset
|
955 " 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
|
956 " Keep sorted. |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
957 """"""""""""""""""""""""""""""""""""""""""""""""" |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
958 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
959 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
|
960 filetype on |
2cf49849e933
patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents:
20986
diff
changeset
|
961 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
962 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
|
963 split Xfile.bas |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
964 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
|
965 bwipe! |
2cf49849e933
patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents:
20986
diff
changeset
|
966 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
967 " 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
|
968 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
969 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
|
970 split Xfile.bas |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
971 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
|
972 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
973 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
|
974 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
975 " FreeBASIC |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
976 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
977 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
|
978 split Xfile.bas |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
979 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
|
980 bwipe! |
2cf49849e933
patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents:
20986
diff
changeset
|
981 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
982 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
|
983 split Xfile.bas |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
984 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
|
985 bwipe! |
21008
2cf49849e933
patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents:
20986
diff
changeset
|
986 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
987 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
|
988 split Xfile.bas |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
989 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
|
990 bwipe! |
27420
978890380129
patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents:
27344
diff
changeset
|
991 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
992 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
|
993 split Xfile.bas |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
994 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
|
995 bwipe! |
978890380129
patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents:
27344
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 " QB64 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
998 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
999 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
|
1000 split Xfile.bas |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1001 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
|
1002 bwipe! |
978890380129
patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents:
27344
diff
changeset
|
1003 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1004 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
|
1005 split Xfile.bas |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1006 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
|
1007 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1008 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1009 " Visual Basic |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1010 |
29326
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1011 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
|
1012 split Xfile.bas |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1013 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
|
1014 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1015 |
27420
978890380129
patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents:
27344
diff
changeset
|
1016 filetype off |
978890380129
patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents:
27344
diff
changeset
|
1017 endfunc |
978890380129
patch 8.2.4238: *.tf file could be fileytpe "tf" or "terraform"
Bram Moolenaar <Bram@vim.org>
parents:
27344
diff
changeset
|
1018 |
28390
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1019 " Test dist#ft#FTcfg() |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1020 func Test_cfg_file() |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1021 filetype on |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1022 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1023 " *.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
|
1024 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
|
1025 split cfgfile.cfg |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1026 call assert_equal('cfg', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1027 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1028 let g:filetype_cfg = 'other' |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1029 edit |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1030 call assert_equal('other', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1031 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1032 unlet g:filetype_cfg |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1033 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1034 " RAPID cfg |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1035 let ext = 'cfg' |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1036 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
|
1037 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
|
1038 execute "split cfgfile." .. ext |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1039 call assert_equal('rapid', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1040 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1041 call delete('cfgfile.' .. ext) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1042 " 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
|
1043 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
|
1044 endfor |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1045 |
28954
0a7b2b0d8c7f
patch 8.2.4999: filetype test table is not properly sorted
Bram Moolenaar <Bram@vim.org>
parents:
28670
diff
changeset
|
1046 " clean up |
28390
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1047 filetype off |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1048 endfunc |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1049 |
27877
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1050 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
|
1051 filetype on |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1052 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1053 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
|
1054 split Xfile.d |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1055 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
|
1056 bwipe! |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1057 |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1058 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
|
1059 split Xfile.d |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1060 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
|
1061 bwipe! |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1062 |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1063 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
|
1064 split Xfile.d |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1065 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
|
1066 bwipe! |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1067 |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1068 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
|
1069 split Xfile.d |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1070 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
|
1071 bwipe! |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1072 |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1073 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
|
1074 split Xfile.d |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1075 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
|
1076 bwipe! |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1077 |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1078 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
|
1079 split Xfile.d |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1080 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
|
1081 bwipe! |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1082 |
27883
9c04fbcaacbc
patch 8.2.4467: running filetype test leaves file behind
Bram Moolenaar <Bram@vim.org>
parents:
27881
diff
changeset
|
1083 " clean up |
27877
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1084 filetype off |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1085 endfunc |
834d3fba1e7c
patch 8.2.4464: Dtrace files are recognized as filetype D
Bram Moolenaar <Bram@vim.org>
parents:
27796
diff
changeset
|
1086 |
28351
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1087 func Test_dat_file() |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1088 filetype on |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1089 |
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
|
1090 " 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
|
1091 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
|
1092 split datfile.dat |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1093 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
|
1094 bwipe! |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1095 call delete('datfile.dat') |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1096 |
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
|
1097 " 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
|
1098 " sensitive. |
28351
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1099 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
|
1100 split datfile.Dat |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1101 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
|
1102 bwipe! |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1103 call delete('datfile.Dat') |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1104 |
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
|
1105 " 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
|
1106 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
|
1107 split datfile.DAT |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1108 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
|
1109 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
|
1110 |
3c34cbb8882d
patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents:
28365
diff
changeset
|
1111 " 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
|
1112 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
|
1113 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
|
1114 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
|
1115 bwipe! |
28351
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1116 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
|
1117 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
|
1118 |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1119 filetype off |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1120 endfunc |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1121 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1122 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
|
1123 filetype on |
d01b011f91b9
patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents:
22989
diff
changeset
|
1124 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1125 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
|
1126 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1127 " 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
|
1128 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
|
1129 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
|
1130 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
|
1131 bwipe! |
d01b011f91b9
patch 8.2.2085: Qt translation file is recognized as typescript
Bram Moolenaar <Bram@vim.org>
parents:
22989
diff
changeset
|
1132 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1133 " 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
|
1134 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
|
1135 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
|
1136 call assert_equal('diff', &filetype) |
23685
eb30aed2059f
patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
23636
diff
changeset
|
1137 bwipe! |
eb30aed2059f
patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
23636
diff
changeset
|
1138 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1139 " 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
|
1140 " 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
|
1141 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
|
1142 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
|
1143 call assert_equal('dep3patch', &filetype) |
23685
eb30aed2059f
patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
23636
diff
changeset
|
1144 bwipe! |
eb30aed2059f
patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
23636
diff
changeset
|
1145 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1146 " 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
|
1147 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
|
1148 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
|
1149 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
|
1150 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
|
1151 bwipe! |
23685
eb30aed2059f
patch 8.2.2384: turtle filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
23636
diff
changeset
|
1152 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1153 " 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
|
1154 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
|
1155 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
|
1156 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
|
1157 bwipe! |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1158 endfunc |
23584
397f95f103e8
patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents:
23430
diff
changeset
|
1159 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1160 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
|
1161 filetype on |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1162 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1163 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
|
1164 split dslfile.dsl |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1165 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
|
1166 bwipe! |
397f95f103e8
patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents:
23430
diff
changeset
|
1167 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1168 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
|
1169 split dslfile.dsl |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1170 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
|
1171 bwipe! |
397f95f103e8
patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents:
23430
diff
changeset
|
1172 |
397f95f103e8
patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents:
23430
diff
changeset
|
1173 filetype off |
397f95f103e8
patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents:
23430
diff
changeset
|
1174 endfunc |
397f95f103e8
patch 8.2.2334: Pascal-like filetypes not always detected
Bram Moolenaar <Bram@vim.org>
parents:
23430
diff
changeset
|
1175 |
25026
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1176 func Test_ex_file() |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1177 filetype on |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1178 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1179 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
|
1180 split Xfile.ex |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1181 call assert_equal('elixir', &filetype) |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1182 bwipe! |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1183 let g:filetype_euphoria = 'euphoria4' |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1184 split Xfile.ex |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1185 call assert_equal('euphoria4', &filetype) |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1186 bwipe! |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1187 unlet g:filetype_euphoria |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1188 |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1189 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
|
1190 split Xfile.ex |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1191 call assert_equal('euphoria3', &filetype) |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1192 bwipe! |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1193 |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1194 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
|
1195 split Xfile.ex |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1196 call assert_equal('euphoria3', &filetype) |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1197 bwipe! |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1198 |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1199 call writefile(['ifdef '], 'Xfile.ex') |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1200 split Xfile.ex |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1201 call assert_equal('euphoria3', &filetype) |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1202 bwipe! |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1203 |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1204 call writefile(['include '], 'Xfile.ex') |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1205 split Xfile.ex |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1206 call assert_equal('euphoria3', &filetype) |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1207 bwipe! |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1208 |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1209 filetype off |
fda44c0b4b7b
patch 8.2.3050: cannot recognize elixir files
Bram Moolenaar <Bram@vim.org>
parents:
25024
diff
changeset
|
1210 endfunc |
21008
2cf49849e933
patch 8.2.1055: no filetype set for pacman config files
Bram Moolenaar <Bram@vim.org>
parents:
20986
diff
changeset
|
1211 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1212 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
|
1213 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
|
1214 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
|
1215 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
|
1216 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1217 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
|
1218 split Xfile1Dict |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1219 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
|
1220 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1221 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1222 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
|
1223 split Xfile1Dict.something |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1224 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
|
1225 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1226 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1227 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
|
1228 split XfileProperties |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1229 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
|
1230 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1231 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1232 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
|
1233 split XfileProperties.something |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1234 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
|
1235 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1236 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1237 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
|
1238 split XfileProperties |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1239 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
|
1240 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1241 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1242 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
|
1243 split XfileProperties.something |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1244 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
|
1245 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1246 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1247 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
|
1248 split 0/Xfile |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1249 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
|
1250 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1251 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1252 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
|
1253 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
|
1254 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
|
1255 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1256 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1257 filetype off |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1258 endfunc |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1259 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1260 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
|
1261 filetype on |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1262 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1263 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
|
1264 split Xfile.frm |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1265 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
|
1266 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1267 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1268 " 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
|
1269 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1270 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
|
1271 split Xfile.frm |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1272 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
|
1273 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1274 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
|
1275 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1276 " Visual Basic |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1277 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1278 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
|
1279 split Xfile.frm |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1280 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
|
1281 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1282 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1283 filetype off |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1284 endfunc |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1285 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1286 func Test_fs_file() |
25644
59a1c9a2ca2e
patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25497
diff
changeset
|
1287 filetype on |
59a1c9a2ca2e
patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25497
diff
changeset
|
1288 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1289 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
|
1290 split Xfile.fs |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1291 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
|
1292 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1293 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1294 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
|
1295 split Xfile.fs |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1296 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
|
1297 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1298 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
|
1299 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1300 " 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
|
1301 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1302 " Forth (Gforth) |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1303 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1304 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
|
1305 split Xfile.fs |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1306 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
|
1307 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1308 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1309 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
|
1310 split Xfile.fs |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1311 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
|
1312 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1313 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1314 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
|
1315 split Xfile.fs |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1316 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
|
1317 bwipe! |
59a1c9a2ca2e
patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25497
diff
changeset
|
1318 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1319 filetype off |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1320 endfunc |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1321 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1322 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
|
1323 filetype on |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1324 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1325 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
|
1326 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1327 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
|
1328 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
|
1329 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
|
1330 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1331 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1332 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
|
1333 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
|
1334 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
|
1335 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1336 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1337 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
|
1338 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
|
1339 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
|
1340 bwipe! |
59a1c9a2ca2e
patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25497
diff
changeset
|
1341 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1342 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
|
1343 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
|
1344 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
|
1345 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1346 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1347 filetype off |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1348 endfunc |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1349 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1350 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
|
1351 filetype on |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1352 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1353 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
|
1354 split Xfile.hook |
28507
73f235d0b6c8
patch 8.2.4778: pacman files use dosini filetype
Bram Moolenaar <Bram@vim.org>
parents:
28485
diff
changeset
|
1355 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
|
1356 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1357 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1358 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
|
1359 split Xfile.hook |
28507
73f235d0b6c8
patch 8.2.4778: pacman files use dosini filetype
Bram Moolenaar <Bram@vim.org>
parents:
28485
diff
changeset
|
1360 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
|
1361 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1362 |
25644
59a1c9a2ca2e
patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25497
diff
changeset
|
1363 filetype off |
59a1c9a2ca2e
patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25497
diff
changeset
|
1364 endfunc |
59a1c9a2ca2e
patch 8.2.3358: structurizr files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25497
diff
changeset
|
1365 |
25727
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1366 func Test_m_file() |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1367 filetype on |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1368 |
30572
d77e208d611d
patch 9.0.0621: filetype test leaves file behind
Bram Moolenaar <Bram@vim.org>
parents:
30552
diff
changeset
|
1369 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
|
1370 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1371 call assert_equal('matlab', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1372 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1373 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1374 let g:filetype_m = 'octave' |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1375 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1376 call assert_equal('octave', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1377 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1378 unlet g:filetype_m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1379 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1380 " Test dist#ft#FTm() |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1381 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1382 " Objective-C |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1383 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1384 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
|
1385 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1386 call assert_equal('objc', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1387 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1388 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1389 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
|
1390 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1391 call assert_equal('objc', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1392 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1393 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1394 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
|
1395 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1396 call assert_equal('objc', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1397 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1398 |
26296
9f32ccdadd22
patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents:
26143
diff
changeset
|
1399 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
|
1400 split Xfile.m |
9f32ccdadd22
patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents:
26143
diff
changeset
|
1401 call assert_equal('objc', &filetype) |
9f32ccdadd22
patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents:
26143
diff
changeset
|
1402 bwipe! |
9f32ccdadd22
patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents:
26143
diff
changeset
|
1403 |
9f32ccdadd22
patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents:
26143
diff
changeset
|
1404 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
|
1405 split Xfile.m |
9f32ccdadd22
patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents:
26143
diff
changeset
|
1406 call assert_equal('objc', &filetype) |
9f32ccdadd22
patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents:
26143
diff
changeset
|
1407 bwipe! |
9f32ccdadd22
patch 8.2.3679: objc file detected as Octave
Bram Moolenaar <Bram@vim.org>
parents:
26143
diff
changeset
|
1408 |
25727
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1409 " Octave |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1410 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1411 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
|
1412 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1413 call assert_equal('octave', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1414 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1415 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1416 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
|
1417 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1418 call assert_equal('octave', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1419 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1420 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1421 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
|
1422 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1423 call assert_equal('octave', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1424 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1425 |
25794
374adc90efa5
patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
25727
diff
changeset
|
1426 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
|
1427 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1428 call assert_equal('octave', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1429 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1430 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1431 " Mathematica |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1432 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1433 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
|
1434 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1435 call assert_equal('mma', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1436 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1437 |
25794
374adc90efa5
patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
25727
diff
changeset
|
1438 " MATLAB |
374adc90efa5
patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
25727
diff
changeset
|
1439 |
374adc90efa5
patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
25727
diff
changeset
|
1440 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
|
1441 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
|
1442 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
|
1443 bwipe! |
374adc90efa5
patch 8.2.3432: octave/Matlab filetype detection does not work properly
Bram Moolenaar <Bram@vim.org>
parents:
25727
diff
changeset
|
1444 |
25727
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1445 " Murphi |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1446 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1447 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
|
1448 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1449 call assert_equal('murphi', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1450 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1451 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1452 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
|
1453 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1454 call assert_equal('murphi', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1455 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1456 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1457 call writefile(['Type'], 'Xfile.m') |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1458 split Xfile.m |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1459 call assert_equal('murphi', &filetype) |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1460 bwipe! |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1461 |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1462 filetype off |
71d3ebfb00b6
patch 8.2.3399: Octave files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
25676
diff
changeset
|
1463 endfunc |
25915
36f2c43bd671
patch 8.2.3491: xpm2 filetype dection is not so good
Bram Moolenaar <Bram@vim.org>
parents:
25878
diff
changeset
|
1464 |
28390
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1465 func Test_mod_file() |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1466 filetype on |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1467 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1468 " *.mod defaults to Modsim III |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1469 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
|
1470 split modfile.mod |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1471 call assert_equal('modsim3', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1472 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1473 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1474 " 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
|
1475 let g:filetype_mod = 'lprolog' |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1476 split modfile.mod |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1477 call assert_equal('lprolog', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1478 unlet g:filetype_mod |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1479 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1480 |
30182
4d3c7b4927f2
patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30176
diff
changeset
|
1481 " 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
|
1482 " but is not always present. |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1483 call writefile(['%%%'], 'modfile.mod') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1484 split modfile.mod |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1485 call assert_equal('rapid', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1486 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1487 call delete('modfile.mod') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1488 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1489 " 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
|
1490 " 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
|
1491 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
|
1492 split modfile.Mod |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1493 call assert_equal('rapid', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1494 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1495 call delete('modfile.Mod') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1496 |
30182
4d3c7b4927f2
patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30176
diff
changeset
|
1497 " 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
|
1498 " 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
|
1499 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
|
1500 split modfile.MOD |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1501 call assert_equal('rapid', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1502 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1503 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1504 " 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
|
1505 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
|
1506 split modfile.MOD |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1507 call assert_equal('modula2', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1508 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1509 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1510 " 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
|
1511 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
|
1512 split modfile.MOD |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1513 call assert_equal('modula2', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1514 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1515 call delete('modfile.MOD') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1516 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1517 " LambdaProlog module |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1518 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
|
1519 split modfile.mod |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1520 call assert_equal('lprolog', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1521 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1522 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1523 " 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
|
1524 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
|
1525 split modfile.mod |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1526 call assert_equal('lprolog', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1527 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1528 call delete('modfile.mod') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1529 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1530 " go.mod |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1531 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
|
1532 split go.mod |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1533 call assert_equal('gomod', &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('go.mod') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1536 |
32519
eae7e7217f26
patch 9.0.1591: some "gomod" files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32517
diff
changeset
|
1537 call writefile(['module M'], 'go.mod') |
eae7e7217f26
patch 9.0.1591: some "gomod" files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32517
diff
changeset
|
1538 split go.mod |
eae7e7217f26
patch 9.0.1591: some "gomod" files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32517
diff
changeset
|
1539 call assert_equal('gomod', &filetype) |
eae7e7217f26
patch 9.0.1591: some "gomod" files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32517
diff
changeset
|
1540 bwipe! |
eae7e7217f26
patch 9.0.1591: some "gomod" files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32517
diff
changeset
|
1541 call delete('go.mod') |
eae7e7217f26
patch 9.0.1591: some "gomod" files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32517
diff
changeset
|
1542 |
28390
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1543 filetype off |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1544 endfunc |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1545 |
26970
733295e9d755
patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents:
26933
diff
changeset
|
1546 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
|
1547 filetype on |
733295e9d755
patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents:
26933
diff
changeset
|
1548 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1549 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
|
1550 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
|
1551 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
|
1552 bwipe! |
733295e9d755
patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents:
26933
diff
changeset
|
1553 |
733295e9d755
patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents:
26933
diff
changeset
|
1554 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
|
1555 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
|
1556 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
|
1557 bwipe! |
733295e9d755
patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents:
26933
diff
changeset
|
1558 |
733295e9d755
patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents:
26933
diff
changeset
|
1559 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
|
1560 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
|
1561 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
|
1562 bwipe! |
733295e9d755
patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents:
26933
diff
changeset
|
1563 |
733295e9d755
patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents:
26933
diff
changeset
|
1564 filetype off |
733295e9d755
patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents:
26933
diff
changeset
|
1565 endfunc |
733295e9d755
patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents:
26933
diff
changeset
|
1566 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1567 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
|
1568 filetype on |
733295e9d755
patch 8.2.4014: git and gitcommit file types not properly recognized
Bram Moolenaar <Bram@vim.org>
parents:
26933
diff
changeset
|
1569 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1570 " 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
|
1571 let lines =<< trim END |
27070
b353bd9faec8
patch 8.2.4064: foam files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
27008
diff
changeset
|
1572 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1573 use a |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1574 END |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1575 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
|
1576 split Xfile.t |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1577 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
|
1578 bwipe |
27070
b353bd9faec8
patch 8.2.4064: foam files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
27008
diff
changeset
|
1579 |
b353bd9faec8
patch 8.2.4064: foam files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
27008
diff
changeset
|
1580 filetype off |
b353bd9faec8
patch 8.2.4064: foam files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
27008
diff
changeset
|
1581 endfunc |
b353bd9faec8
patch 8.2.4064: foam files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
27008
diff
changeset
|
1582 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1583 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
|
1584 filetype on |
9f72ec92d361
patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents:
27132
diff
changeset
|
1585 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1586 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
|
1587 split Xfile.pp |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1588 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
|
1589 bwipe! |
9f72ec92d361
patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents:
27132
diff
changeset
|
1590 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1591 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
|
1592 split Xfile.pp |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1593 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
|
1594 bwipe! |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1595 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
|
1596 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1597 " 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
|
1598 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
|
1599 split Xfile.pp |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1600 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
|
1601 bwipe! |
9f72ec92d361
patch 8.2.4172: filetype detection for BASIC is not optimal
Bram Moolenaar <Bram@vim.org>
parents:
27132
diff
changeset
|
1602 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1603 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
|
1604 split Xfile.pp |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1605 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
|
1606 bwipe! |
3af3dee7e5d9
patch 8.2.4274: Basic and form filetype detection is incomplete
Bram Moolenaar <Bram@vim.org>
parents:
27445
diff
changeset
|
1607 |
3af3dee7e5d9
patch 8.2.4274: Basic and form filetype detection is incomplete
Bram Moolenaar <Bram@vim.org>
parents:
27445
diff
changeset
|
1608 filetype off |
3af3dee7e5d9
patch 8.2.4274: Basic and form filetype detection is incomplete
Bram Moolenaar <Bram@vim.org>
parents:
27445
diff
changeset
|
1609 endfunc |
3af3dee7e5d9
patch 8.2.4274: Basic and form filetype detection is incomplete
Bram Moolenaar <Bram@vim.org>
parents:
27445
diff
changeset
|
1610 |
28390
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1611 " Test dist#ft#FTprg() |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1612 func Test_prg_file() |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1613 filetype on |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1614 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1615 " *.prg defaults to clipper |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1616 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
|
1617 split prgfile.prg |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1618 call assert_equal('clipper', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1619 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1620 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1621 " 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
|
1622 let g:filetype_prg = 'eviews' |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1623 split prgfile.prg |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1624 call assert_equal('eviews', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1625 unlet g:filetype_prg |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1626 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1627 |
30182
4d3c7b4927f2
patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30176
diff
changeset
|
1628 " 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
|
1629 " but is not always present. |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1630 call writefile(['%%%'], 'prgfile.prg') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1631 split prgfile.prg |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1632 call assert_equal('rapid', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1633 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1634 call delete('prgfile.prg') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1635 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1636 " 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
|
1637 " 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
|
1638 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
|
1639 split prgfile.Prg |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1640 call assert_equal('rapid', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1641 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1642 call delete('prgfile.Prg') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1643 |
30182
4d3c7b4927f2
patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30176
diff
changeset
|
1644 " 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
|
1645 " 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
|
1646 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
|
1647 split prgfile.PRG |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1648 call assert_equal('rapid', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1649 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1650 call delete('prgfile.PRG') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1651 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1652 filetype off |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1653 endfunc |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1654 |
28443
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1655 " Test dist#ft#FTsc() |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1656 func Test_sc_file() |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1657 filetype on |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1658 |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1659 " SC classes are defined with '+ Class {}' |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1660 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
|
1661 split srcfile.sc |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1662 call assert_equal('supercollider', &filetype) |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1663 bwipe! |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1664 call delete('srcfile.sc') |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1665 |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1666 " 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
|
1667 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
|
1668 split srcfile.sc |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1669 call assert_equal('supercollider', &filetype) |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1670 bwipe! |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1671 call delete('srcfile.sc') |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1672 |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1673 " 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
|
1674 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
|
1675 split srcfile.sc |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1676 call assert_equal('supercollider', &filetype) |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1677 bwipe! |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1678 call delete('srcfile.sc') |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1679 |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1680 filetype off |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1681 endfunc |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1682 |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1683 " Test dist#ft#FTscd() |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1684 func Test_scd_file() |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1685 filetype on |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1686 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1687 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
|
1688 split srcfile.scd |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1689 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
|
1690 |
28443
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1691 bwipe! |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1692 filetype off |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1693 endfunc |
5896c0f6cdd7
patch 8.2.4746: supercollider filetype not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28417
diff
changeset
|
1694 |
28351
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1695 func Test_src_file() |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1696 filetype on |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1697 |
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
|
1698 " 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
|
1699 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
|
1700 split srcfile.src |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1701 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
|
1702 bwipe! |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1703 call delete('srcfile.src') |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1704 |
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
|
1705 " 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
|
1706 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
|
1707 split srcfile.Src |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1708 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
|
1709 bwipe! |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1710 call delete('srcfile.Src') |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1711 |
28483
62a0dd56466c
patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28445
diff
changeset
|
1712 " 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
|
1713 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
|
1714 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
|
1715 split srcfile.SRC |
62a0dd56466c
patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28445
diff
changeset
|
1716 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
|
1717 bwipe! |
62a0dd56466c
patch 8.2.4766: KRL files using "deffct" not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28445
diff
changeset
|
1718 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
|
1719 |
3c34cbb8882d
patch 8.2.4714: using g:filetype_dat and g:filetype_src not tested
Bram Moolenaar <Bram@vim.org>
parents:
28365
diff
changeset
|
1720 " 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
|
1721 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
|
1722 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
|
1723 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
|
1724 bwipe! |
28351
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1725 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
|
1726 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
|
1727 |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1728 filetype off |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1729 endfunc |
1aa3460f799d
patch 8.2.4701: Kuka Robot Language files not recognized
Bram Moolenaar <Bram@vim.org>
parents:
28277
diff
changeset
|
1730 |
28390
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1731 func Test_sys_file() |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1732 filetype on |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1733 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1734 " *.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
|
1735 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
|
1736 split sysfile.sys |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1737 call assert_equal('bat', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1738 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1739 |
28445
7f0ec490d608
patch 8.2.4747: no filetype override for .sys files
Bram Moolenaar <Bram@vim.org>
parents:
28443
diff
changeset
|
1740 " 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
|
1741 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
|
1742 split sysfile.sys |
7f0ec490d608
patch 8.2.4747: no filetype override for .sys files
Bram Moolenaar <Bram@vim.org>
parents:
28443
diff
changeset
|
1743 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
|
1744 unlet g:filetype_sys |
7f0ec490d608
patch 8.2.4747: no filetype override for .sys files
Bram Moolenaar <Bram@vim.org>
parents:
28443
diff
changeset
|
1745 bwipe! |
7f0ec490d608
patch 8.2.4747: no filetype override for .sys files
Bram Moolenaar <Bram@vim.org>
parents:
28443
diff
changeset
|
1746 |
30182
4d3c7b4927f2
patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30176
diff
changeset
|
1747 " 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
|
1748 " but is not always present. |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1749 call writefile(['%%%'], 'sysfile.sys') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1750 split sysfile.sys |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1751 call assert_equal('rapid', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1752 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1753 call delete('sysfile.sys') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1754 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1755 " 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
|
1756 " 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
|
1757 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
|
1758 split sysfile.Sys |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1759 call assert_equal('rapid', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1760 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1761 call delete('sysfile.Sys') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1762 |
30182
4d3c7b4927f2
patch 9.0.0427: Drupal theme files are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30176
diff
changeset
|
1763 " 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
|
1764 " 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
|
1765 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
|
1766 split sysfile.SYS |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1767 call assert_equal('rapid', &filetype) |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1768 bwipe! |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1769 call delete('sysfile.SYS') |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1770 |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1771 filetype off |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1772 endfunc |
cc4d3ded4004
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
28380
diff
changeset
|
1773 |
27557
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1774 func Test_tex_file() |
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1775 filetype on |
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1776 |
31575
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1777 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
|
1778 split Xfile.tex |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1779 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
|
1780 bwipe |
27557
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1781 |
31575
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1782 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
|
1783 split Xfile.tex |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1784 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
|
1785 bwipe |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1786 |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1787 " tex_flavor is unset |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1788 call writefile(['%& plain'], 'Xfile.tex') |
27557
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1789 split Xfile.tex |
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1790 call assert_equal('plaintex', &filetype) |
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1791 bwipe |
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1792 |
31575
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1793 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
|
1794 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
|
1795 split Xfile.tex |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1796 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
|
1797 bwipe |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1798 |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1799 let lines =<< trim END |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1800 % This is a comment. |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1801 |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1802 \usemodule[translate] |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1803 END |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1804 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
|
1805 split Xfile.tex |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1806 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
|
1807 bwipe |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1808 |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1809 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
|
1810 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
|
1811 split Xfile.tex |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1812 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
|
1813 bwipe |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1814 unlet g:tex_flavor |
60fe50450ee5
patch 9.0.1120: tex filetype detection not sufficiently tested
Bram Moolenaar <Bram@vim.org>
parents:
31547
diff
changeset
|
1815 |
27557
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1816 call delete('Xfile.tex') |
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1817 filetype off |
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1818 endfunc |
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1819 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1820 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
|
1821 filetype on |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1822 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1823 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
|
1824 split Xfile.tf |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1825 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
|
1826 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1827 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1828 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
|
1829 split Xfile.tf |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1830 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
|
1831 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1832 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1833 filetype off |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1834 endfunc |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1835 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1836 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
|
1837 filetype on |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1838 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1839 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
|
1840 split Xfile.ts |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1841 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
|
1842 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1843 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1844 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
|
1845 split Xfile.ts |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1846 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
|
1847 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1848 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1849 filetype off |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1850 endfunc |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1851 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1852 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
|
1853 filetype on |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1854 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1855 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
|
1856 split Xfile.ttl |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1857 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
|
1858 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1859 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1860 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
|
1861 split Xfile.ttl |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1862 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
|
1863 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1864 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1865 filetype off |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1866 endfunc |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1867 |
32292
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1868 func Test_v_file() |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1869 filetype on |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1870 |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1871 call writefile(['module tb; // Looks like a Verilog'], 'Xfile.v', 'D') |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1872 split Xfile.v |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1873 call assert_equal('verilog', &filetype) |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1874 bwipe! |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1875 |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1876 call writefile(['module main'], 'Xfile.v') |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1877 split Xfile.v |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1878 call assert_equal('v', &filetype) |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1879 bwipe! |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1880 |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1881 call writefile(['Definition x := 10. (*'], 'Xfile.v') |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1882 split Xfile.v |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1883 call assert_equal('coq', &filetype) |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1884 bwipe! |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1885 |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1886 filetype off |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1887 endfunc |
91bb2a8cc866
patch 9.0.1478: filetypes for *.v files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
32288
diff
changeset
|
1888 |
27559
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1889 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
|
1890 filetype on |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1891 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1892 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
|
1893 split file.xpm |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1894 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
|
1895 bwipe! |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1896 |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1897 filetype off |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1898 endfunc |
663dece3743a
patch 8.2.4306: no test for fixed perl filetype check
Bram Moolenaar <Bram@vim.org>
parents:
27557
diff
changeset
|
1899 |
29326
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1900 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
|
1901 filetype on |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1902 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1903 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
|
1904 split Xfile.cls |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1905 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
|
1906 bwipe! |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1907 |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1908 " 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
|
1909 |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1910 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
|
1911 split Xfile.cls |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1912 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
|
1913 bwipe! |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1914 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
|
1915 |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1916 " TeX |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1917 |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1918 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
|
1919 split Xfile.cls |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1920 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
|
1921 bwipe! |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1922 |
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
|
1923 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
|
1924 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
|
1925 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
|
1926 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
|
1927 |
29326
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1928 " Rexx |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1929 |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1930 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
|
1931 split Xfile.cls |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1932 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
|
1933 bwipe! |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1934 |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1935 " Visual Basic |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1936 |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1937 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
|
1938 split Xfile.cls |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1939 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
|
1940 bwipe! |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1941 |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1942 filetype off |
1f1d99bba06c
patch 9.0.0006: not all Visual Basic files are recognized
Bram Moolenaar <Bram@vim.org>
parents:
29324
diff
changeset
|
1943 endfunc |
27557
ce72087b601f
patch 8.2.4305: tex filetype detection fails
Bram Moolenaar <Bram@vim.org>
parents:
27493
diff
changeset
|
1944 |
29338
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1945 func Test_sig_file() |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1946 filetype on |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1947 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
1948 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
|
1949 split Xfile.sig |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1950 call assert_equal('', &filetype) |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1951 bwipe! |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1952 |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1953 " Test dist#ft#FTsig() |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1954 |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1955 let g:filetype_sig = 'sml' |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1956 split Xfile.sig |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1957 call assert_equal('sml', &filetype) |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1958 bwipe! |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1959 unlet g:filetype_sig |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1960 |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1961 " Lambda Prolog |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1962 |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1963 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
|
1964 split Xfile.sig |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1965 call assert_equal('lprolog', &filetype) |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1966 bwipe! |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1967 |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1968 call writefile(['/* ... */'], 'Xfile.sig') |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1969 split Xfile.sig |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1970 call assert_equal('lprolog', &filetype) |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1971 bwipe! |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1972 |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1973 call writefile(['% ...'], 'Xfile.sig') |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1974 split Xfile.sig |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1975 call assert_equal('lprolog', &filetype) |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1976 bwipe! |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1977 |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1978 " SML signature file |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1979 |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1980 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
|
1981 split Xfile.sig |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1982 call assert_equal('sml', &filetype) |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1983 bwipe! |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1984 |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1985 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
|
1986 split Xfile.sig |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1987 call assert_equal('sml', &filetype) |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1988 bwipe! |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1989 |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1990 call writefile(['(* ... *)'], 'Xfile.sig') |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1991 split Xfile.sig |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1992 call assert_equal('sml', &filetype) |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1993 bwipe! |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1994 |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1995 filetype off |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1996 endfunc |
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
1997 |
30023
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
1998 " 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
|
1999 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
|
2000 filetype on |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2001 |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2002 split Xfile.sil |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2003 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
|
2004 bwipe! |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2005 |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2006 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
|
2007 // valid |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2008 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
|
2009 |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2010 // also valid |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2011 let protoErasedPathA = |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2012 \ABCProtocol.a |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2013 END |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
2014 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
|
2015 |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2016 split Xfile.sil |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2017 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
|
2018 bwipe! |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2019 |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2020 " SILE |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2021 |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2022 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
|
2023 split Xfile.sil |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2024 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
|
2025 bwipe! |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2026 |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2027 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
|
2028 split Xfile.sil |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2029 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
|
2030 bwipe! |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2031 |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2032 filetype off |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2033 endfunc |
87063bfe81cd
patch 9.0.0349: filetype of *.sil files not well detected
Bram Moolenaar <Bram@vim.org>
parents:
29962
diff
changeset
|
2034 |
29427
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2035 func Test_inc_file() |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2036 filetype on |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2037 |
30552
a7a9e8b9af89
patch 9.0.0611: tests delete files with a separate delete() call
Bram Moolenaar <Bram@vim.org>
parents:
30537
diff
changeset
|
2038 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
|
2039 split Xfile.inc |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2040 call assert_equal('pov', &filetype) |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2041 bwipe! |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2042 |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2043 let g:filetype_inc = 'foo' |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2044 split Xfile.inc |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2045 call assert_equal('foo', &filetype) |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2046 bwipe! |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2047 unlet g:filetype_inc |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2048 |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2049 " aspperl |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2050 call writefile(['perlscript'], 'Xfile.inc') |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2051 split Xfile.inc |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2052 call assert_equal('aspperl', &filetype) |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2053 bwipe! |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2054 |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2055 " aspvbs |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2056 call writefile(['<% something'], 'Xfile.inc') |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2057 split Xfile.inc |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2058 call assert_equal('aspvbs', &filetype) |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2059 bwipe! |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2060 |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2061 " php |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2062 call writefile(['<?php'], 'Xfile.inc') |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2063 split Xfile.inc |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2064 call assert_equal('php', &filetype) |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2065 bwipe! |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2066 |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2067 " pascal |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2068 call writefile(['program'], 'Xfile.inc') |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2069 split Xfile.inc |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2070 call assert_equal('pascal', &filetype) |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2071 bwipe! |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2072 |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2073 " bitbake |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2074 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
|
2075 split Xfile.inc |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2076 call assert_equal('bitbake', &filetype) |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2077 bwipe! |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2078 |
29493
6c1e06abff2c
patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents:
29485
diff
changeset
|
2079 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
|
2080 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
|
2081 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
|
2082 bwipe! |
6c1e06abff2c
patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents:
29485
diff
changeset
|
2083 |
6c1e06abff2c
patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents:
29485
diff
changeset
|
2084 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
|
2085 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
|
2086 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
|
2087 bwipe! |
6c1e06abff2c
patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents:
29485
diff
changeset
|
2088 |
6c1e06abff2c
patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents:
29485
diff
changeset
|
2089 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
|
2090 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
|
2091 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
|
2092 bwipe! |
6c1e06abff2c
patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents:
29485
diff
changeset
|
2093 |
6c1e06abff2c
patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents:
29485
diff
changeset
|
2094 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
|
2095 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
|
2096 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
|
2097 bwipe! |
6c1e06abff2c
patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents:
29485
diff
changeset
|
2098 |
6c1e06abff2c
patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents:
29485
diff
changeset
|
2099 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
|
2100 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
|
2101 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
|
2102 bwipe! |
6c1e06abff2c
patch 9.0.0088: pattern for detecting bitbake files is not sufficient
Bram Moolenaar <Bram@vim.org>
parents:
29485
diff
changeset
|
2103 |
29427
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2104 " asm |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2105 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
|
2106 split Xfile.inc |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2107 call assert_equal('foo', &filetype) |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2108 bwipe! |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2109 |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2110 filetype off |
2830faa3e100
patch 9.0.0055: bitbake files are not detected
Bram Moolenaar <Bram@vim.org>
parents:
29415
diff
changeset
|
2111 endfunc |
29338
f4f531986753
patch 9.0.0012: signature files not detected properly
Bram Moolenaar <Bram@vim.org>
parents:
29326
diff
changeset
|
2112 |
30890
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2113 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
|
2114 filetype on |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2115 |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2116 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
|
2117 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
|
2118 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
|
2119 bwipe! |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2120 |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2121 " 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
|
2122 |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2123 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
|
2124 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
|
2125 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
|
2126 bwipe! |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2127 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
|
2128 |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2129 " 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
|
2130 |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2131 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
|
2132 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
|
2133 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
|
2134 bwipe! |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2135 |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2136 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
|
2137 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
|
2138 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
|
2139 bwipe! |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2140 |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2141 filetype off |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2142 endfunc |
ebcaf6bbb410
patch 9.0.0779: lsl and lm3 file extensions are not recognized
Bram Moolenaar <Bram@vim.org>
parents:
30873
diff
changeset
|
2143 |
32415
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2144 func Test_typ_file() |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2145 filetype on |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2146 |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2147 " SQL type file |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2148 |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2149 call writefile(['CASE = LOWER'], 'Xfile.typ', 'D') |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2150 split Xfile.typ |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2151 call assert_equal('sql', &filetype) |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2152 bwipe! |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2153 |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2154 call writefile(['TYPE foo'], 'Xfile.typ') |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2155 split Xfile.typ |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2156 call assert_equal('sql', &filetype) |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2157 bwipe! |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2158 |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2159 " typst document |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2160 |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2161 call writefile(['this is a fallback'], 'Xfile.typ') |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2162 split Xfile.typ |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2163 call assert_equal('typst', &filetype) |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2164 bwipe! |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2165 |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2166 let g:filetype_typ = 'typst' |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2167 split test.typ |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2168 call assert_equal('typst', &filetype) |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2169 bwipe! |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2170 unlet g:filetype_typ |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2171 |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2172 filetype off |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2173 endfunc |
8d7214baf422
patch 9.0.1539: typst filetype is not recognized
Bram Moolenaar <Bram@vim.org>
parents:
32343
diff
changeset
|
2174 |
19425
67fbe280a502
patch 8.2.0270: some code not covered by tests
Bram Moolenaar <Bram@vim.org>
parents:
19263
diff
changeset
|
2175 " vim: shiftwidth=2 sts=2 expandtab |