changeset 32572:9514e94d4ebe v9.0.1618

patch 9.0.1618: Trace32 files are not recognized Commit: https://github.com/vim/vim/commit/7fbcee6f928356f1c205a4dfa67c1d542f743b92 Author: Christoph Sax <christoph.sax@mailbox.org> Date: Thu Jun 8 17:57:19 2023 +0100 patch 9.0.1618: Trace32 files are not recognized Problem: Trace32 files are not recognized. Solution: Add patterns for the t32 filetype. (Christoph Sax, closes https://github.com/vim/vim/issues/12505)
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Jun 2023 19:00:03 +0200
parents 8543c6038230
children 71e9f8fc5d75
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
@@ -2234,6 +2234,9 @@ au BufNewFile,BufRead *.toml			setf toml
 " TPP - Text Presentation Program
 au BufNewFile,BufRead *.tpp			setf tpp
 
+" TRACE32 Script Language
+au BufNewFile,BufRead *.cmm,*.t32		setf t32
+
 " Treetop
 au BufRead,BufNewFile *.treetop			setf treetop
 
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -662,6 +662,7 @@ def s:GetFilenameChecks(): dict<list<str
               'any/etc/systemd/system/file.d/.#-file',
               'any/etc/systemd/system/file.d/file.conf'],
     systemverilog: ['file.sv', 'file.svh'],
+    t32: ['file.cmm', 'file.t32'],
     tags: ['tags'],
     tak: ['file.tak'],
     tal: ['file.tal'],
--- 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 */
 /**/
+    1618,
+/**/
     1617,
 /**/
     1616,