Hi, I have a patch against help.vim to enable proper syntax highlighting for tags that are named like special variables in Lisp, i.e.:
*standard-output* Corresponding tag would be called **standard-output**, which is unfortunate as this will break highlighting. The attached patch fixes that. Not very pretty, but I'm afraid it's not possible to do it easier. -- Mikael --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
--- help.vim 2007-05-07 05:13:56.000000000 +0200 +++ /tmp/help.vim 2008-06-15 17:02:33.000000000 +0200 @@ -16,13 +16,21 @@ syn match helpHyperTextJump "\\\@<!|[^"*|]\+|" contains=helpBar syn match helpHyperTextEntry "\*[^"*|]\+\*\s"he=e-1 contains=helpStar syn match helpHyperTextEntry "\*[^"*|]\+\*$" contains=helpStar + syn match helpHyperTextEntry "\*\*[^"*|]\+" contains=helpStarStar nextgroup=helpHyperTextEntryEnd + syn match helpHyperTextEntryEnd "\*\*$" contains=helpStarStarEnd + syn match helpHyperTextEntryEnd "\*\*\s"he=e-1 contains=helpStarStarEnd else syn match helpHyperTextJump "\\\@<!|[#-)!+-~]\+|" contains=helpBar syn match helpHyperTextEntry "\*[#-)!+-~]\+\*\s"he=e-1 contains=helpStar syn match helpHyperTextEntry "\*[#-)!+-~]\+\*$" contains=helpStar + syn match helpHyperTextEntry "\*\*[#-)!+-~]\+" contains=helpStarStar nextgroup=helpHyperTextEntryEnd + syn match helpHyperTextEntryEnd "\*\*$" contains=helpStarStarEnd + syn match helpHyperTextEntryEnd "\*\*\s"he=e-1 contains=helpStarStarEnd endif syn match helpBar contained "|" syn match helpStar contained "\*" +syn match helpStarStar contained "\*\*"me=s+1 +syn match helpStarStarEnd contained "\*\*"ms=s+1 syn match helpNormal "|.*====*|" syn match helpNormal ":|vim:|" " for :help modeline syn match helpVim "Vim version [0-9.a-z]\+" @@ -126,6 +134,9 @@ hi def link helpHyperTextJump Subtitle hi def link helpBar Ignore hi def link helpStar Ignore +hi def link helpStarStar helpStar +hi def link helpStarStarEnd helpStarStar +hi def link helpHyperTextEntryEnd helpHyperTextEntry hi def link helpHyperTextEntry String hi def link helpHeadline Statement hi def link helpHeader PreProc