From: Doug Kearns Date: Sat, 4 Oct 2025 09:57:54 +0000 (+0000) Subject: runtime(help): Update syntax X-Git-Tag: v9.1.1823~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85fd7f8983dcee3de96aecb736d23bc0daaecad8;p=thirdparty%2Fvim.git runtime(help): Update syntax Match Vim9 return types in builtin function specifications. closes: #18477 Signed-off-by: Doug Kearns Signed-off-by: Christian Brabandt --- diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim index 2d07b7018f..5f3c079a19 100644 --- a/runtime/syntax/help.vim +++ b/runtime/syntax/help.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Vim help file " Maintainer: Doug Kearns -" Last Change: 2025 Sep 29 +" Last Change: 2025 Oct 03 " Former Maintainer: Bram Moolenaar " Quit when a (custom) syntax file was already loaded @@ -62,6 +62,14 @@ if has_key(g:help_example_languages, "vim9") syn cluster helpExampleHighlight_vim9 add=vim9LegacyHeader_HelpExample endif +" builtin.txt +syn region helpReturnType + \ start="^\t\tReturn type: " + \ end="^$" + \ contains=@vimType,helpHyperTextJump,helpSpecial + \ transparent +syn match helpSpecial contained "{type}" containedin=vimCompoundType + if has("ebcdic") syn match helpHyperTextJump "\\\@