runtime(help): support highlighting groups in translated syntax doc
Commit:
https://github.com/vim/vim/commit/72cefe6b72c92b5f3686ee297277a2940cbb702f
Author: Hirohito Higashi <
h.eas...@gmail.com>
Date: Thu Apr 9 18:38:35 2026 +0000
runtime(help): support highlighting groups in translated syntax doc
closes:
https://github.com/vim/vim/issues/19942
Signed-off-by: Hirohito Higashi <
h.eas...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim
index effdc4b87..c851bdfec 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 <
dougk...@gmail.com>
-" Last Change: 2025 Nov 13
" Former Maintainer: Bram Moolenaar <
Br...@vim.org>
+" 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\| x\)$'
" highlight groups with their respective color
import 'dist/vimhelp.vim'
call vimhelp.HighlightGroups()