mirror of
https://github.com/neovim/neovim.git
synced 2026-06-16 00:31:16 +00:00
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
fd30a736cc
Co-authored-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
This commit is contained in:
@@ -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 "[<>]?"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user