patch 9.1.1321: filetype: MS ixx and mpp files are not recognized
Commit:
https://github.com/vim/vim/commit/aee34ef23e08a944f87d6bb4f972c56ba88dc6dd
Author: Hampus Avekvist <[email protected]>
Date: Fri Apr 18 18:18:06 2025 +0200
patch 9.1.1321: filetype: MS ixx and mpp files are not recognized
Problem: filetype: MS ixx and mpp files are not recognized
Solution: detect *.mpp and *.ixx files as c++ filetype
(Hampus Avekvist)
closes: #17155
Signed-off-by: Hampus Avekvist <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index c2c639c96..e85007434 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2025 Apr 15
+" Last Change: 2025 Apr 18
" Former Maintainer: Bram Moolenaar <[email protected]>
" Listen very carefully, I will say this only once
@@ -429,6 +429,9 @@ if has("fname_case")
au BufNewFile,BufRead *.C,*.H if !&fileignorecase | setf cpp | endif
endif
+" MS files (ixx: C++ module interface file, Microsoft Project file)
+au BufNewFile,BufRead *.ixx,*.mpp setf cpp
+
" C++ 20 modules (clang)
"
https://clang.llvm.org/docs/StandardCPlusPlusModules.html#file-name-requirement
au BufNewFile,BufRead *.cppm,*.ccm,*.cxxm,*.c++m setf cpp
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 91460cec6..6ec55aeb0 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -188,7 +188,7 @@ def s:GetFilenameChecks(): dict<list<string>>
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'],
diff --git a/src/version.c b/src/version.c
index c25536196..4c9f4ce53 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1321,
/**/
1320,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1u5obL-00ArSr-1r%40256bit.org.