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 <hampus.avekvist@hey.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Hampus Avekvist
2025-04-18 18:18:06 +02:00
committed by Christian Brabandt
parent 1d96caaa4b
commit aee34ef23e
3 changed files with 7 additions and 2 deletions

View File

@ -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 <Bram@vim.org>
" 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