mirror of
https://github.com/vim/vim.git
synced 2025-10-18 07:54:29 -04:00
runtime(help): Update syntax
Match Vim9 return types in builtin function specifications. closes: #18477 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
64ff6d1688
commit
85fd7f8983
@@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Vim help file
|
" Language: Vim help file
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2025 Sep 29
|
" Last Change: 2025 Oct 03
|
||||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Quit when a (custom) syntax file was already loaded
|
" 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
|
syn cluster helpExampleHighlight_vim9 add=vim9LegacyHeader_HelpExample
|
||||||
endif
|
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")
|
if has("ebcdic")
|
||||||
syn match helpHyperTextJump "\\\@<!|[^"*|]\+|" contains=helpBar
|
syn match helpHyperTextJump "\\\@<!|[^"*|]\+|" contains=helpBar
|
||||||
syn match helpHyperTextEntry "\*[^"*|]\+\*\s"he=e-1 contains=helpStar
|
syn match helpHyperTextEntry "\*[^"*|]\+\*\s"he=e-1 contains=helpStar
|
||||||
|
Reference in New Issue
Block a user