Skip to content

Commit 746fe54

Browse files
xascchrisbra
authored andcommitted
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 <c_sax@mailbox.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent b7147f8 commit 746fe54

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

runtime/filetype.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2646,7 +2646,7 @@ au BufNewFile,BufRead *.toml setf toml
26462646
au BufNewFile,BufRead *.tpp setf tpp
26472647

26482648
" TRACE32 Script Language
2649-
au BufNewFile,BufRead *.cmm,*.t32 setf trace32
2649+
au BufNewFile,BufRead *.cmm,*.cmmt,*.t32 setf trace32
26502650

26512651
" Treetop
26522652
au BufRead,BufNewFile *.treetop setf treetop

src/testdir/test_filetype.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ def s:GetFilenameChecks(): dict<list<string>>
816816
tmux: ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf', 'tmux.conf.local'],
817817
toml: ['file.toml', 'Gopkg.lock', 'Pipfile', '/home/user/.cargo/config', '.black'],
818818
tpp: ['file.tpp'],
819-
trace32: ['file.cmm', 'file.t32'],
819+
trace32: ['file.cmm', 'file.cmmt', 'file.t32'],
820820
treetop: ['file.treetop'],
821821
trig: ['file.trig'],
822822
trustees: ['trustees.conf'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1085,
707709
/**/
708710
1084,
709711
/**/

0 commit comments

Comments
 (0)