diff options
-rw-r--r-- | runtime/filetype.vim | 4 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 56df5d6b4d..b5262d1e9e 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -338,6 +338,10 @@ if has("fname_case") au BufNewFile,BufRead *.C,*.H setf cpp endif +" C++ 20 modules (clang) +" https://clang.llvm.org/docs/StandardCPlusPlusModules.html#file-name-requirement +au BufNewFile,BufRead *.cppm,*.ccm,*.cxxm,*.c++m setf cpp + " .h files can be C, Ch C++, ObjC or ObjC++. " Set c_syntax_for_h if you want C, ch_syntax_for_h if you want Ch. ObjC is " detected automatically. diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index af2969dd8c..0b8b52c88e 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -127,7 +127,7 @@ let s:filename_checks = { \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'], \ 'cook': ['file.cook'], \ 'cpon': ['file.cpon'], - \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'], + \ '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'], \ '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 9a50ab0fd1..50773f8444 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1455, +/**/ 1454, /**/ 1453, |