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