commit f060f03304ca5f3b8adf5d5b46bdd01dc413d985
parent 2ee8ace217b8e4405822d3ab1bed5a20bedc4b04
Author: Christian Clason <c.clason@uni-graz.at>
Date: Wed, 9 Aug 2023 23:35:10 +0200
vim-patch:2eb413f89b97 (#24627)
* vim-patch:2eb413f89b97
detect filetype for `*.vsh` and `*.vv` files (vim/vim#12692)
Co-authored-by: Turiiya <34311583+tobealive@users.noreply.github.com>
https://github.com/vim/vim/commit/2eb413f89b97a498679fbe68c7564b9e41c5af7f
Co-authored-by: Turiiya <34311583+ttytm@users.noreply.github.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
@@ -1017,6 +1017,8 @@ local extension = {
url = 'urlshortcut',
usd = 'usd',
usda = 'usd',
+ vsh = 'v',
+ vv = 'v',
sba = 'vb',
vb = 'vb',
dsm = 'vb',
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
@@ -675,6 +675,7 @@ func s:GetFilenameChecks() abort
\ 'usd': ['file.usda', 'file.usd'],
\ 'usserverlog': ['usserver.log', 'USSERVER.LOG', 'usserver.file.log', 'USSERVER.FILE.LOG', 'file.usserver.log', 'FILE.USSERVER.LOG'],
\ 'usw2kagtlog': ['usw2kagt.log', 'USW2KAGT.LOG', 'usw2kagt.file.log', 'USW2KAGT.FILE.LOG', 'file.usw2kagt.log', 'FILE.USW2KAGT.LOG'],
+ \ 'v': ['file.vsh', 'file.vv'],
\ 'vala': ['file.vala'],
\ 'vb': ['file.sba', 'file.vb', 'file.vbs', 'file.dsm', 'file.ctl'],
\ 'vdf': ['file.vdf'],