Commit: runtime(c): Update signal constants in syntax script

2 views
Skip to first unread message

Christian Brabandt

unread,
Nov 20, 2025, 2:30:35 PM (2 days ago) Nov 20
to vim...@googlegroups.com
runtime(c): Update signal constants in syntax script

Commit: https://github.com/vim/vim/commit/7fe4b8c1bd34e6bf108a7127903be9508809e17c
Author: Harry <166658338+h...@users.noreply.github.com>
Date: Tue Nov 18 20:50:39 2025 +0000

runtime(c): Update signal constants in syntax script

closes: https://github.com/vim/vim/issues/18763

Co-authored-by: zeertzjq <zeer...@outlook.com>
Signed-off-by: Harry <166658338+h...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/c.vim b/runtime/syntax/c.vim
index 68b6778c7..d2f2b85b4 100644
--- 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 Jan 18
+" Last Change: 2025 Nov 18
" Former Maintainer: Bram Moolenaar <Br...@vim.org>

" Quit when a (custom) syntax file was already loaded
@@ -421,8 +421,10 @@ if !exists("c_no_ansi") || exists("c_ansi_constants") || exists("c_gnu")
syn keyword cConstant NDEBUG
" POSIX 2001
syn keyword cConstant SIGBUS SIGPOLL SIGPROF SIGSYS SIGURG SIGVTALRM SIGXCPU SIGXFSZ
+ " POSIX Issue 8 (post 2017)
+ syn keyword cConstant SIGWINCH
" non-POSIX signals
- syn keyword cConstant SIGWINCH SIGINFO
+ syn keyword cConstant SIGINFO SIGIO
" Add POSIX errors as well. List comes from:
" http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html
syn keyword cConstant E2BIG EACCES EADDRINUSE EADDRNOTAVAIL EAFNOSUPPORT EAGAIN EALREADY EBADF
Reply all
Reply to author
Forward
0 new messages