aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-24 22:12:15 +0800
committerGitHub <noreply@github.com>2024-06-24 22:12:15 +0800
commitb0e59909075a582fbcf12b4c8a3ec1bff12c4eea (patch)
treee66959687715e4095eba29d7887ee99e521ce551 /runtime/lua/vim
parentc57a85e0eda067ea28ca5853358947332aceecfd (diff)
downloadrneovim-b0e59909075a582fbcf12b4c8a3ec1bff12c4eea.tar.gz
rneovim-b0e59909075a582fbcf12b4c8a3ec1bff12c4eea.tar.bz2
rneovim-b0e59909075a582fbcf12b4c8a3ec1bff12c4eea.zip
refactor(filetype): change some patterns to extensions (#29472)
Ref #29468
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua16
1 files changed, 10 insertions, 6 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 6dd920e506..6d3fc48efc 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -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',