# HG changeset patch # User Bram Moolenaar # Date 1667820605 -3600 # Node ID f825a2646cc0ab4d30bb215791b6e4ae245d3b6a # Parent 8ec7f621e5b99c99b957c93f493ffdda51cfac49 patch 9.0.0843: VHS tape files are not recognized Commit: https://github.com/vim/vim/commit/1756f4b21837e8596241ecd668f4abbbab4bc7e5 Author: Carlos A Becker Date: Mon Nov 7 11:17:29 2022 +0000 patch 9.0.0843: VHS tape files are not recognized Problem: VHS tape files are not recognized. Solution: Add a filetype pattern. (Carlos Alexandro Becker, closes https://github.com/vim/vim/issues/11452) diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2181,6 +2181,11 @@ au BufNewFile,BufRead *.va,*.vams setf " SystemVerilog au BufNewFile,BufRead *.sv,*.svh setf systemverilog +" VHS tape +" .tape is also used by TapeCalc, which we do not support ATM. If TapeCalc +" support is needed the contents of the file needs to be inspected. +au BufNewFile,BufRead *.tape setf vhs + " VHDL au BufNewFile,BufRead *.hdl,*.vhd,*.vhdl,*.vbe,*.vst,*.vho setf vhdl diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -611,6 +611,7 @@ let s:filename_checks = { \ 'verilogams': ['file.va', 'file.vams'], \ 'vgrindefs': ['vgrindefs'], \ 'vhdl': ['file.hdl', 'file.vhd', 'file.vhdl', 'file.vbe', 'file.vst', 'file.vhdl_123', 'file.vho', 'some.vhdl_1', 'some.vhdl_1-file'], + \ 'vhs': ['file.tape'], \ 'vim': ['file.vim', 'file.vba', '.exrc', '_exrc', 'some-vimrc', 'some-vimrc-file', 'vimrc', 'vimrc-file'], \ 'viminfo': ['.viminfo', '_viminfo'], \ 'vmasm': ['file.mar'], diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 843, +/**/ 842, /**/ 841,