From fdcc4c6b66ae2e2e9ca2120a22580d91f8cdce74 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 29 Oct 2025 07:22:16 +0800 Subject: [PATCH] vim-patch:9ad7067: runtime(doc): Highlight [expr] arg in :help :return description closes: vim/vim#18654 https://github.com/vim/vim/commit/9ad706735d35c23ecbfa8a306190882631a7e2b4 Co-authored-by: Doug Kearns --- runtime/doc/userfunc.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/doc/userfunc.txt b/runtime/doc/userfunc.txt index bb61335a1b..d2a841e0b4 100644 --- a/runtime/doc/userfunc.txt +++ b/runtime/doc/userfunc.txt @@ -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,