mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
refactor(filetype): change some patterns to extensions (#29472)
Ref #29468
This commit is contained in:
parent
c57a85e0ed
commit
b0e5990907
@ -203,6 +203,10 @@ local extension = {
|
||||
return 'aspvbs'
|
||||
end,
|
||||
asm = detect.asm,
|
||||
s = detect.asm,
|
||||
S = detect.asm,
|
||||
a = detect.asm,
|
||||
A = detect.asm,
|
||||
lst = detect.asm,
|
||||
mac = detect.asm,
|
||||
asn1 = 'asn',
|
||||
@ -706,6 +710,10 @@ local extension = {
|
||||
mmp = 'mmp',
|
||||
mms = detect.mms,
|
||||
DEF = 'modula2',
|
||||
m3 = 'modula3',
|
||||
i3 = 'modula3',
|
||||
mg = 'modula3',
|
||||
ig = 'modula3',
|
||||
lm3 = 'modula3',
|
||||
mojo = 'mojo',
|
||||
['🔥'] = 'mojo', -- 🙄
|
||||
@ -1157,6 +1165,8 @@ local extension = {
|
||||
wbt = 'winbatch',
|
||||
wit = 'wit',
|
||||
wml = 'wml',
|
||||
wsf = 'wsh',
|
||||
wsc = 'wsh',
|
||||
wsml = 'wsml',
|
||||
ad = 'xdefaults',
|
||||
xhtml = 'xhtml',
|
||||
@ -1741,8 +1751,6 @@ local pattern = {
|
||||
['.*asterisk/.*%.conf.*'] = starsetf('asterisk'),
|
||||
['.*asterisk.*/.*voicemail%.conf.*'] = starsetf('asteriskvm'),
|
||||
['.*/%.aptitude/config'] = 'aptconf',
|
||||
['.*%.[aA]'] = detect.asm,
|
||||
['.*%.[sS]'] = detect.asm,
|
||||
['[mM]akefile%.am'] = 'automake',
|
||||
['.*/bind/db%..*'] = starsetf('bindzone'),
|
||||
['.*/named/db%..*'] = starsetf('bindzone'),
|
||||
@ -1798,8 +1806,6 @@ local pattern = {
|
||||
['.*/etc/apt/sources%.list%.d/.*%.list'] = 'debsources',
|
||||
['.*/etc/apt/sources%.list'] = 'debsources',
|
||||
['.*/etc/apt/sources%.list%.d/.*%.sources'] = 'deb822sources',
|
||||
['.*%.directory'] = 'desktop',
|
||||
['.*%.desktop'] = 'desktop',
|
||||
['dictd.*%.conf'] = 'dictdconf',
|
||||
['.*/etc/DIR_COLORS'] = 'dircolors',
|
||||
['.*/etc/dnsmasq%.conf'] = 'dnsmasq',
|
||||
@ -2017,7 +2023,6 @@ local pattern = {
|
||||
return 'modconf'
|
||||
end
|
||||
end),
|
||||
['.*%.[mi][3g]'] = 'modula3',
|
||||
['Muttrc'] = 'muttrc',
|
||||
['Muttngrc'] = 'muttrc',
|
||||
['.*/etc/Muttrc%.d/.*'] = starsetf('muttrc'),
|
||||
@ -2164,7 +2169,6 @@ local pattern = {
|
||||
['.*%.[Ll][Oo][Gg]'] = detect.log,
|
||||
['.*/etc/config/.*'] = starsetf(detect.uci),
|
||||
['.*%.vhdl_[0-9].*'] = starsetf('vhdl'),
|
||||
['.*%.ws[fc]'] = 'wsh',
|
||||
['.*/Xresources/.*'] = starsetf('xdefaults'),
|
||||
['.*/app%-defaults/.*'] = starsetf('xdefaults'),
|
||||
['.*/etc/xinetd%.conf'] = 'xinetd',
|
||||
|
Loading…
Reference in New Issue
Block a user