diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-04-16 10:59:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-16 10:59:04 +0200 |
commit | d9e9dc3a06b78d3d1548757348788454f62ea3dc (patch) | |
tree | 2dbb6d0a4026c66d2c0af5ceb330dae0d96c3c6d /runtime/lua/vim | |
parent | 42e55ba009ecc14afa1b519c8de02cb30c0d1671 (diff) | |
download | rneovim-d9e9dc3a06b78d3d1548757348788454f62ea3dc.tar.gz rneovim-d9e9dc3a06b78d3d1548757348788454f62ea3dc.tar.bz2 rneovim-d9e9dc3a06b78d3d1548757348788454f62ea3dc.zip |
vim-patch:9.0.1455: C++ 20 modules are not recognized (#23124)
Problem: C++ 20 modules are not recognized.
Solution: Add patterns to recognize C++ 20 modules as "cpp". (Ben Jackson,
closes vim/vim#12261)
https://github.com/vim/vim/commit/732d69e1918b28ad0fe16eb9bc5a776c7958122b
Co-authored-by: Ben Jackson <puremourning@gmail.com>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 87439f9f0c..74ab7d8260 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -257,6 +257,10 @@ local extension = { tcc = 'cpp', hxx = 'cpp', hpp = 'cpp', + ccm = 'cpp', + cppm = 'cpp', + cxxm = 'cpp', + ['c++m'] = 'cpp', cpp = function(path, bufnr) return vim.g.cynlib_syntax_for_cpp and 'cynlib' or 'cpp' end, |