From 746fe54d4f16ad1c5694cccc8bc8d93a97c050e1 Mon Sep 17 00:00:00 2001 From: Christoph Sax Date: Sat, 8 Feb 2025 19:01:05 +0100 Subject: [PATCH] patch 9.1.1085: filetype: cmmt files are not recognized Problem: filetype: cmmt files are not recognized Solution: detect '*.cmmt' as trace32 filetype (Christian Sax) "*.cmmt" files use the same syntax as regular TRACE32 scripts, but are intended as a kind of script template. closes: #16598 Signed-off-by: Christoph Sax Signed-off-by: Christian Brabandt --- runtime/filetype.vim | 2 +- src/testdir/test_filetype.vim | 2 +- src/version.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index dcb6130b3..6904a18c1 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2646,7 +2646,7 @@ au BufNewFile,BufRead *.toml setf toml au BufNewFile,BufRead *.tpp setf tpp " TRACE32 Script Language -au BufNewFile,BufRead *.cmm,*.t32 setf trace32 +au BufNewFile,BufRead *.cmm,*.cmmt,*.t32 setf trace32 " Treetop au BufRead,BufNewFile *.treetop setf treetop diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 3dcc66529..3125ffc99 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -816,7 +816,7 @@ def s:GetFilenameChecks(): dict> tmux: ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf', 'tmux.conf.local'], toml: ['file.toml', 'Gopkg.lock', 'Pipfile', '/home/user/.cargo/config', '.black'], tpp: ['file.tpp'], - trace32: ['file.cmm', 'file.t32'], + trace32: ['file.cmm', 'file.cmmt', 'file.t32'], treetop: ['file.treetop'], trig: ['file.trig'], trustees: ['trustees.conf'], diff --git a/src/version.c b/src/version.c index cb4805a2f..20eafbbe4 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1085, /**/ 1084, /**/