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