From: Hirohito Higashi Date: Thu, 9 Apr 2026 18:38:35 +0000 (+0000) Subject: runtime(help): support highlighting groups in translated syntax doc X-Git-Tag: v9.2.0324~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72cefe6b72c92b5f3686ee297277a2940cbb702f;p=thirdparty%2Fvim.git runtime(help): support highlighting groups in translated syntax doc closes: #19942 Signed-off-by: Hirohito Higashi Signed-off-by: Christian Brabandt --- diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim index effdc4b874..c851bdfec2 100644 --- a/runtime/syntax/help.vim +++ b/runtime/syntax/help.vim @@ -1,8 +1,9 @@ " Vim syntax file " Language: Vim help file " Maintainer: Doug Kearns -" Last Change: 2025 Nov 13 " Former Maintainer: Bram Moolenaar +" Last Change: 2025 Nov 13 +" 2026 Apr 09 by Vim project: improve pattern for translated syntaxt.txt #19942 " Quit when a (custom) syntax file was already loaded if exists("b:current_syntax") @@ -306,7 +307,7 @@ hi def link helpDiffAdded Added hi def link helpDiffChanged Changed hi def link helpDiffRemoved Removed -if has('textprop') && expand('%:p') =~ '[/\\]doc[/\\]syntax.txt' +if has('textprop') && expand('%:p') =~? '[/\\]doc[/\\]syntax.\(txt\|\a\ax\)$' " highlight groups with their respective color import 'dist/vimhelp.vim' call vimhelp.HighlightGroups()