From 5f04e4ac4fd0d5058cf339b8824eed41b6981e85 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 9 Oct 2024 07:15:52 +0800 Subject: [PATCH] vim-patch:d3b55d7: runtime(help): highlight CTRL- correctly (#30727) https://github.com/vim/vim/commit/d3b55d7f76e32e9b7f895fe43f37435ce7bf782e Co-authored-by: Christian Brabandt --- runtime/syntax/help.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim index fd128bb0b5..bccbacaeec 100644 --- a/runtime/syntax/help.vim +++ b/runtime/syntax/help.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Vim help file " Maintainer: The Vim Project -" Last Change: 2024 Oct 05 +" Last Change: 2024 Oct 08 " Former Maintainer: Bram Moolenaar " Quit when a (custom) syntax file was already loaded @@ -92,6 +92,7 @@ syn match helpSpecial "\[group]" syn match helpNormal "\[\(readonly\|fifo\|socket\|converted\|crypted\)]" syn match helpSpecial "CTRL-." +syn match helpSpecial "CTRL-<\a\+>" syn match helpSpecial "CTRL-SHIFT-." syn match helpSpecial "CTRL-Break" syn match helpSpecial "CTRL-PageUp"