detect filetype for `*.vsh` and `*.vv` files (#12692)

Commit: 
https://github.com/vim/vim/commit/2eb413f89b97a498679fbe68c7564b9e41c5af7f
Author: Turiiya <[email protected]>
Date:   Wed Aug 9 17:04:59 2023 +0200

    detect filetype for `*.vsh` and `*.vv` files 
(https://github.com/vim/vim/issues/12692)
    
    Co-authored-by: Turiiya <[email protected]>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 5d2484921..6d2d55e3c 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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
 
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 4e13712be..a044b6292 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qTktr-00BoV7-6f%40256bit.org.

Raspunde prin e-mail lui