neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit d423dd8b8ba7e590a0a5d24ff5dc4a98dda08e2f
parent b94061a71d7b4ddfeb06faa22786f5aab762afe9
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Fri, 16 Jan 2026 07:27:16 +0800

vim-patch:5529b75: runtime(c): Do not highlight noreturn in C++ code

closes: vim/vim#19170

https://github.com/vim/vim/commit/5529b750a7ce6dcafaecb119d674b99275dbe3c7

Co-authored-by: Wu Yongwei <wuyongwei@gmail.com>

Diffstat:
Mruntime/syntax/c.vim | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/runtime/syntax/c.vim b/runtime/syntax/c.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: C " Maintainer: The Vim Project <https://github.com/vim/vim> -" Last Change: 2025 Nov 18 +" Last Change: 2026 Jan 13 " Former Maintainer: Bram Moolenaar <Bram@vim.org> " Quit when a (custom) syntax file was already loaded @@ -326,7 +326,10 @@ if !exists("c_no_c11") syn keyword cOperator _Alignof alignof syn keyword cStorageClass _Atomic syn keyword cOperator _Generic - syn keyword cStorageClass _Noreturn noreturn + syn keyword cStorageClass _Noreturn + if !s:in_cpp_family + syn keyword cStorageClass noreturn + endif syn keyword cOperator _Static_assert static_assert syn keyword cStorageClass _Thread_local thread_local syn keyword cType char16_t char32_t