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 #11452)
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 421d2a3..192dc53 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2181,6 +2181,11 @@
" 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
index 22e5198..7b41955 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -611,6 +611,7 @@
\ '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
index d46aebb..a6083eb 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 843,
+/**/
842,
/**/
841,