aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/filetype.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-31 07:44:33 +0800
committerGitHub <noreply@github.com>2023-08-31 07:44:33 +0800
commit79148813567909aae8bc733e585d7713f6069401 (patch)
treedf50c131819f4e2e04b3930cd3934116711e547c /runtime/lua/vim/filetype.lua
parent64631168188b76bfb5b57fb36e57cfd1114cf7f7 (diff)
downloadrneovim-79148813567909aae8bc733e585d7713f6069401.tar.gz
rneovim-79148813567909aae8bc733e585d7713f6069401.tar.bz2
rneovim-79148813567909aae8bc733e585d7713f6069401.zip
vim-patch:9.0.1797: Vimball/Visual Basic filetype detection conflict (#24947)
Problem: Vimball/Visual Basic filetype detection conflict Solution: runtime(vb): Improve Vimball and Visual Basic detection logic Only run Vimball Archiver's BufEnter autocommand on Vimball archives. Fixes vim/vim#2694. closes: vim/vim#12899 https://github.com/vim/vim/commit/f97f6bbf56408c0c97b4ddbe81fba858d7455b0d Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/lua/vim/filetype.lua')
-rw-r--r--runtime/lua/vim/filetype.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 35a10b6bdc..0e8ecf1b07 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -351,6 +351,7 @@ local extension = {
bat = 'dosbatch',
wrap = 'dosini',
ini = 'dosini',
+ vbp = 'dosini',
dot = 'dot',
gv = 'dot',
drac = 'dracula',
@@ -1025,13 +1026,18 @@ local extension = {
url = 'urlshortcut',
usd = 'usd',
usda = 'usd',
+ v = detect.v,
vsh = 'v',
vv = 'v',
+ ctl = 'vb',
+ dob = 'vb',
+ dsm = 'vb',
+ dsr = 'vb',
+ pag = 'vb',
sba = 'vb',
vb = 'vb',
- dsm = 'vb',
- ctl = 'vb',
vbs = 'vb',
+ vba = detect.vba,
vdf = 'vdf',
vdmpp = 'vdmpp',
vpp = 'vdmpp',
@@ -1041,7 +1047,6 @@ local extension = {
vr = 'vera',
vri = 'vera',
vrh = 'vera',
- v = detect.v,
va = 'verilogams',
vams = 'verilogams',
vhdl = 'vhdl',
@@ -1052,7 +1057,6 @@ local extension = {
vbe = 'vhdl',
tape = 'vhs',
vim = 'vim',
- vba = 'vim',
mar = 'vmasm',
cm = 'voscm',
wrl = 'vrml',