]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
detect filetype for `*.vsh` and `*.vv` files (#12692)
authorTuriiya <34311583+ttytm@users.noreply.github.com>
Wed, 9 Aug 2023 15:04:59 +0000 (17:04 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2023 15:04:59 +0000 (17:04 +0200)
Co-authored-by: Turiiya <34311583+tobealive@users.noreply.github.com>
runtime/filetype.vim
src/testdir/test_filetype.vim

index 5d24849219a3099902dfddcdf261e7d4863eadd1..6d2d55e3c7a91349fccc21add0238dcdb56da64e 100644 (file)
@@ -2320,6 +2320,9 @@ au BufNewFile,BufRead */.config/upstart/*.override               setf upstart
 " URL shortcut
 au BufNewFile,BufRead *.url                    setf urlshortcut
 
+" V
+au BufNewFile,BufRead *.vsh,*.vv                       setf v
+
 " Vala
 au BufNewFile,BufRead *.vala                   setf vala
 
index 4e13712be112609d09be5f6858db927483ea111d..a044b629269493a944fa8695630ded05ef7f5fa0 100644 (file)
@@ -753,6 +753,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     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'],