aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/cpp.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-06-02 07:38:30 +0200
committerzeertzjq <zeertzjq@outlook.com>2026-06-02 07:39:05 +0200
commitc1253d6f95b2c445b5a70d46b4e65a9918c0e844 (patch)
treec70bb669cd6ec256dee7965585b80ae00f6d6afd /runtime/syntax/cpp.vim
parent6ca94cb8fb8fe9658467e5ed6f2003ae7fcbaa40 (diff)
downloadrneovim-c1253d6f95b2c445b5a70d46b4e65a9918c0e844.tar.gz
rneovim-c1253d6f95b2c445b5a70d46b4e65a9918c0e844.tar.bz2
rneovim-c1253d6f95b2c445b5a70d46b4e65a9918c0e844.zip
vim-patch:fd30a73: runtime(cpp): recognize C++23 stdfloat types
Add float16_t, float32_t, float64_t, float128_t and bfloat16_t from <stdfloat> as cppType under a new cpp_no_cpp23 guard. fixes: vim/vim#16498 closes: vim/vim#20367 https://github.com/vim/vim/commit/fd30a736cc4acbefe3a1b05e6051f8df13aa6b2b Co-authored-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Diffstat (limited to 'runtime/syntax/cpp.vim')
-rw-r--r--runtime/syntax/cpp.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/syntax/cpp.vim b/runtime/syntax/cpp.vim
index 5ea52ec502..1c725a4bfd 100644
--- a/runtime/syntax/cpp.vim
+++ b/runtime/syntax/cpp.vim
@@ -7,6 +7,7 @@
" 2024 May 04 by Vim Project fix digit separator in octals and floats
" 2026 Jan 06 by Vim Project orphaning announcement
" 2026 Jan 08 by Vim Project highlight capital letter prefixes for numbers
+" 2026 May 29 by Vim Project add C++23 stdfloat types (#16498)
" quit when a syntax file was already loaded
if exists("b:current_syntax")
@@ -104,6 +105,11 @@ if !exists("cpp_no_cpp20")
syn keyword cppModule import module export
endif
+" C++ 23 extensions
+if !exists("cpp_no_cpp23")
+ syn keyword cppType float16_t float32_t float64_t float128_t bfloat16_t
+endif
+
" The minimum and maximum operators in GNU C++
syn match cppMinMax "[<>]?"