neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 9198368f32dc0b4e2470b594f323691d45501442
parent 53e737748e0e5c032fd6e2c2172c94bc5baf0cb7
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Sat,  8 Feb 2025 19:08:39 +0100

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 <c_sax@mailbox.org>

Diffstat:
Mruntime/lua/vim/filetype.lua | 1+
Mtest/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 @@ -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 @@ -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'],