diff runtime/syntax/help.vim @ 28777:b96ceb97e896

Update runtime files Commit: https://github.com/vim/vim/commit/d899e51120798d3fb5420abb1f19dddf3f014d05 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 7 21:54:03 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sat, 07 May 2022 23:00:04 +0200
parents 43593a5d873f
children cd68a630f0d0
line wrap: on
line diff
--- a/runtime/syntax/help.vim
+++ b/runtime/syntax/help.vim
@@ -1,7 +1,7 @@
 " Vim syntax file
 " Language:	Vim help file
 " Maintainer:	Bram Moolenaar (Bram@vim.org)
-" Last Change:	2021 Jun 13
+" Last Change:	2022 May 01
 
 " Quit when a (custom) syntax file was already loaded
 if exists("b:current_syntax")
@@ -215,6 +215,12 @@ hi def link helpError		Error
 hi def link helpTodo		Todo
 hi def link helpURL		String
 
+if expand('%:p') == $VIMRUNTIME .. '/doc/syntax.txt'
+  " highlight groups with their respective color
+  import 'dist/vimhelp.vim'
+  call vimhelp.HighlightGroups()
+endif
+
 let b:current_syntax = "help"
 
 let &cpo = s:cpo_save