commit 2fa8825bef667b63dda3a5987fdd5a24074658ad
parent 4dc337cda86f16a0f5976a4a8bf19da96309a484
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 21 Nov 2025 08:49:45 +0800
vim-patch:7fe4b8c: runtime(c): Update signal constants in syntax script
closes: vim/vim#18763
https://github.com/vim/vim/commit/7fe4b8c1bd34e6bf108a7127903be9508809e17c
Co-authored-by: Harry <166658338+harrystevens4@users.noreply.github.com>
Diffstat:
1 file changed, 4 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 Jan 18
+" Last Change: 2025 Nov 18
" Former Maintainer: Bram Moolenaar <Bram@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