runtime(doc): fix outdated :function help

Commit: 
https://github.com/vim/vim/commit/fe8c8b1e8596144029a012de2398d7bd57bcc577
Author: zeertzjq <[email protected]>
Date:   Sat Dec 20 15:24:57 2025 +0000

    runtime(doc): fix outdated :function help
    
    Since patch 7.4.264 a leading "g:" is skipped.
    
    closes: #18976
    
    Signed-off-by: zeertzjq <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/doc/userfunc.txt b/runtime/doc/userfunc.txt
index aa8ed9ec8..6ecfd2653 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 28
+*userfunc.txt* For Vim version 9.1.  Last change: 2025 Dec 20
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -80,11 +80,11 @@ See |:verbose-cmd| for more information.
                        matching |:endfunction|.
                                                                *E1267*
                        The name must be made of alphanumeric characters and
-                       '_', and must start with a capital or "s:" (see
-                       above).  Note that using "b:" or "g:" is not allowed.
-                       (since patch 7.4.260 E884 is given if the function
-                       name has a colon in the name, e.g. for "foo:bar()".
-                       Before that patch no error was given).
+                       '_' and must start with a capital or "s:" (see above).
+                       Note that using "b:", "l:", etc. is not allowed (since
+                       patch 7.4.260 E884 is given if the function name has a
+                       colon, e.g. for "foo:bar()"), while a leading "g:" is
+                       skipped and still requires a following capital letter.
 
                        {name} can also be a |Dictionary| entry that is a
                        |Funcref|: >

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vWyuF-0077Ke-8l%40256bit.org.

Raspunde prin e-mail lui