vim-patch:9ad7067: runtime(doc): Highlight [expr] arg in :help :return description

closes: vim/vim#18654

9ad706735d

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
zeertzjq
2025-10-29 07:22:16 +08:00
parent ee60bf6112
commit fdcc4c6b66

View File

@@ -179,9 +179,9 @@ See |:verbose-cmd| for more information.
With the ! there is no error if the function does not
exist.
*:retu* *:return* *E133*
:retu[rn] [expr] Return from a function. When "[expr]" is given, it is
:retu[rn] [expr] Return from a function. When [expr] is given, it is
evaluated and returned as the result of the function.
If "[expr]" is not given, the number 0 is returned.
If [expr] is not given, the number 0 is returned.
When a function ends without an explicit ":return",
the number 0 is returned.
Note that there is no check for unreachable lines,