Mercurial > vim
changeset 31016:f825a2646cc0 v9.0.0843
patch 9.0.0843: VHS tape files are not recognized
Commit: https://github.com/vim/vim/commit/1756f4b21837e8596241ecd668f4abbbab4bc7e5
Author: Carlos A Becker <caarlos0@users.noreply.github.com>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 07 Nov 2022 12:30:05 +0100 |
parents | 8ec7f621e5b9 |
children | 99a1b64051b5 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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'],