diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-08-09 23:35:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 23:35:10 +0200 |
commit | f060f03304ca5f3b8adf5d5b46bdd01dc413d985 (patch) | |
tree | 2920501a53b936d5416ea011928620c3945471d9 | |
parent | 2ee8ace217b8e4405822d3ab1bed5a20bedc4b04 (diff) | |
download | rneovim-f060f03304ca5f3b8adf5d5b46bdd01dc413d985.tar.gz rneovim-f060f03304ca5f3b8adf5d5b46bdd01dc413d985.tar.bz2 rneovim-f060f03304ca5f3b8adf5d5b46bdd01dc413d985.zip |
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>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 2 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index dd730c0744..bee210aacb 100644 --- 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 index e733526d18..b459191159 100644 --- 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'], |