aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-02-08 19:08:39 +0100
committerChristian Clason <ch.clason+github@icloud.com>2025-02-09 11:08:53 +0100
commit9198368f32dc0b4e2470b594f323691d45501442 (patch)
tree3244364163da64d50ba04c155ae8bfd14e905965
parent53e737748e0e5c032fd6e2c2172c94bc5baf0cb7 (diff)
downloadrneovim-9198368f32dc0b4e2470b594f323691d45501442.tar.gz
rneovim-9198368f32dc0b4e2470b594f323691d45501442.tar.bz2
rneovim-9198368f32dc0b4e2470b594f323691d45501442.zip
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>
-rw-r--r--runtime/lua/vim/filetype.lua1
-rw-r--r--test/old/testdir/test_filetype.vim2
2 files changed, 2 insertions, 1 deletions
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'],