From 6f29c68928c3f20d9a1b1a7a311cfac65aa1b4e6 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 13 May 2023 15:00:08 +0200 Subject: [PATCH] vim-patch:9.0.1549: USD filetype is not recognized (#23608) Problem: USD filetype is not recognized. Solution: Add patterns for USD filetype. (Colin Kennedy, closes vim/vim#12370) https://github.com/vim/vim/commit/b848ce6b7e27f24aff47a4d63933e0f96663acfe Co-authored-by: Colin Kennedy --- runtime/lua/vim/filetype.lua | 2 ++ test/old/testdir/test_filetype.vim | 1 + 2 files changed, 3 insertions(+) diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index c746eef1bb..5075c18976 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1080,6 +1080,8 @@ local extension = { uit = 'uil', uil = 'uil', ungram = 'ungrammar', + usd = 'usd', + usda = 'usd', sba = 'vb', vb = 'vb', dsm = 'vb', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 177a8247ac..88c4dfb553 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -638,6 +638,7 @@ let s:filename_checks = { \ 'upstreamdat': ['upstream.dat', 'UPSTREAM.DAT', 'upstream.file.dat', 'UPSTREAM.FILE.DAT', 'file.upstream.dat', 'FILE.UPSTREAM.DAT'], \ 'upstreaminstalllog': ['upstreaminstall.log', 'UPSTREAMINSTALL.LOG', 'upstreaminstall.file.log', 'UPSTREAMINSTALL.FILE.LOG', 'file.upstreaminstall.log', 'FILE.UPSTREAMINSTALL.LOG'], \ 'upstreamlog': ['fdrupstream.log', 'upstream.log', 'UPSTREAM.LOG', 'upstream.file.log', 'UPSTREAM.FILE.LOG', 'file.upstream.log', 'FILE.UPSTREAM.LOG', 'UPSTREAM-file.log', 'UPSTREAM-FILE.LOG'], + \ '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'], \ 'vala': ['file.vala'],