From 9198368f32dc0b4e2470b594f323691d45501442 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 8 Feb 2025 19:08:39 +0100 Subject: 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 https://github.com/vim/vim/commit/746fe54d4f16ad1c5694cccc8bc8d93a97c050e1 Co-authored-by: Christoph Sax --- runtime/lua/vim/filetype.lua | 1 + test/old/testdir/test_filetype.vim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 5aaa3f053b..6974b6508d 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1191,6 +1191,7 @@ local extension = { svh = 'systemverilog', sv = 'systemverilog', cmm = 'trace32', + cmmt = 'trace32', t32 = 'trace32', td = 'tablegen', tak = 'tak', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 384bc8d8b3..1260f01f8e 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -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'], -- cgit