Mercurial > vim
changeset 32435:7d96dca159a1 v9.0.1549
patch 9.0.1549: USD filetype is not recognized
Commit: https://github.com/vim/vim/commit/b848ce6b7e27f24aff47a4d63933e0f96663acfe
Author: Colin Kennedy <colinvfx@gmail.com>
Date: Sat May 13 12:15:57 2023 +0100
patch 9.0.1549: USD filetype is not recognized
Problem: USD filetype is not recognized.
Solution: Add patterns for USD filetype. (Colin Kennedy, closes https://github.com/vim/vim/issues/12370)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 May 2023 13:30:03 +0200 |
parents | 8366257b3541 |
children | bbdfe818dc0f |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2746,6 +2746,9 @@ au BufNewFile,BufRead .login*,.cshrc* c " tmux configuration with arbitrary extension au BufNewFile,BufRead {.,}tmux*.conf* setf tmux +" Universal Scene Description +au BufNewFile,BufRead *.usda,*.usd setf usd + " VHDL au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl')
--- a/src/testdir/test_filetype.vim +++ b/src/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'],