Skip to content

Commit 85fd7f8

Browse files
dkearnschrisbra
authored andcommitted
runtime(help): Update syntax
Match Vim9 return types in builtin function specifications. closes: #18477 Signed-off-by: Doug Kearns <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 64ff6d1 commit 85fd7f8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

runtime/syntax/help.vim

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file
22
" Language: Vim help file
33
" Maintainer: Doug Kearns <[email protected]>
4-
" Last Change: 2025 Sep 29
4+
" Last Change: 2025 Oct 03
55
" Former Maintainer: Bram Moolenaar <[email protected]>
66

77
" Quit when a (custom) syntax file was already loaded
@@ -62,6 +62,14 @@ if has_key(g:help_example_languages, "vim9")
6262
syn cluster helpExampleHighlight_vim9 add=vim9LegacyHeader_HelpExample
6363
endif
6464

65+
" builtin.txt
66+
syn region helpReturnType
67+
\ start="^\t\tReturn type: "
68+
\ end="^$"
69+
\ contains=@vimType,helpHyperTextJump,helpSpecial
70+
\ transparent
71+
syn match helpSpecial contained "{type}" containedin=vimCompoundType
72+
6573
if has("ebcdic")
6674
syn match helpHyperTextJump "\\\@<!|[^"*|]\+|" contains=helpBar
6775
syn match helpHyperTextEntry "\*[^"*|]\+\*\s"he=e-1 contains=helpStar

0 commit comments

Comments
 (0)