runtime(help): support highlighting groups in translated syntax doc
Commit:
https://github.com/vim/vim/commit/72cefe6b72c92b5f3686ee297277a2940cbb702f
Author: Hirohito Higashi <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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 <[email protected]>
-" Last Change: 2025 Nov 13
" Former Maintainer: Bram Moolenaar <[email protected]>
+" 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()
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1wAuNG-00C3vE-C6%40256bit.org.