]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1085: filetype: cmmt files are not recognized v9.1.1085
authorChristoph Sax <c_sax@mailbox.org>
Sat, 8 Feb 2025 18:01:05 +0000 (19:01 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 8 Feb 2025 18:01:05 +0000 (19:01 +0100)
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 <c_sax@mailbox.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index dcb6130b32505547521bca9d0e18e6c419510a94..6904a18c10c4cd5b9bb0af6ae010046e3dcc0a7d 100644 (file)
@@ -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
index 3dcc6652900e92f04785d1c388ea1aa5e28482cc..3125ffc99a3f62763918150399ca470df895110b 100644 (file)
@@ -816,7 +816,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     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'],
index cb4805a2fa2bb9da95fd1c58b17ad596174350a1..20eafbbe4f7cd186e33a803e55c64ca8397edc00 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1085,
 /**/
     1084,
 /**/