Mercurial > vim
changeset 32704:ac61cd09b633
detect filetype for `*.vsh` and `*.vv` files (#12692)
Commit: https://github.com/vim/vim/commit/2eb413f89b97a498679fbe68c7564b9e41c5af7f
Author: Turiiya <34311583+ttytm@users.noreply.github.com>
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 <34311583+tobealive@users.noreply.github.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 09 Aug 2023 17:15:03 +0200 |
parents | 30452cdbac7f |
children | 31b68cad57cc |
files | runtime/filetype.vim src/testdir/test_filetype.vim |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2320,6 +2320,9 @@ au BufNewFile,BufRead */.config/upstart/ " URL shortcut au BufNewFile,BufRead *.url setf urlshortcut +" V +au BufNewFile,BufRead *.vsh,*.vv setf v + " Vala au BufNewFile,BufRead *.vala setf vala
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -753,6 +753,7 @@ def s:GetFilenameChecks(): dict<list<str 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'],