vim-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: vim/vim#16598

746fe54d4f

Co-authored-by: Christoph Sax <c_sax@mailbox.org>
This commit is contained in:
Christian Clason
2025-02-08 19:08:39 +01:00
committed by Christian Clason
parent 53e737748e
commit 9198368f32
2 changed files with 2 additions and 1 deletions

View File

@@ -1191,6 +1191,7 @@ local extension = {
svh = 'systemverilog',
sv = 'systemverilog',
cmm = 'trace32',
cmmt = 'trace32',
t32 = 'trace32',
td = 'tablegen',
tak = 'tak',

View File

@@ -813,7 +813,7 @@ func s:GetFilenameChecks() abort
\ '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'],