diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 9b3e1526b2..d3ef53dd17 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -345,6 +345,8 @@ local extension = { tcc = 'cpp', hxx = 'cpp', hpp = 'cpp', + ixx = 'cpp', + mpp = 'cpp', ccm = 'cpp', cppm = 'cpp', cxxm = 'cpp', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 0c010b120a..6906a6e874 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -188,7 +188,7 @@ func s:GetFilenameChecks() abort \ 'cook': ['file.cook'], \ 'corn': ['file.corn'], \ 'cpon': ['file.cpon'], - \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh', 'file.cppm', 'file.ccm', 'file.cxxm', 'file.c++m'], + \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.ixx', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh', 'file.cppm', 'file.ccm', 'file.cxxm', 'file.c++m', 'file.mpp'], \ 'cqlang': ['file.cql'], \ 'crm': ['file.crm'], \ 'crontab': ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'],