From: Doug Kearns Date: Tue, 28 Oct 2025 20:20:02 +0000 (+0000) Subject: runtime(doc): Highlight [expr] arg in :help :return description X-Git-Tag: v9.1.1885~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ad706735d35c23ecbfa8a306190882631a7e2b4;p=thirdparty%2Fvim.git runtime(doc): Highlight [expr] arg in :help :return description closes: #18654 Signed-off-by: Doug Kearns Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/userfunc.txt b/runtime/doc/userfunc.txt index 0f008446ee..aa8ed9ec8c 100644 --- a/runtime/doc/userfunc.txt +++ b/runtime/doc/userfunc.txt @@ -1,4 +1,4 @@ -*userfunc.txt* For Vim version 9.1. Last change: 2025 Oct 27 +*userfunc.txt* For Vim version 9.1. Last change: 2025 Oct 28 VIM REFERENCE MANUAL by Bram Moolenaar @@ -189,9 +189,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.