Mercurial > vim
diff src/vim9compile.c @ 27595:d504745607bc v8.2.4324
patch 8.2.4324: Vim9: script-local function name can start with "_"
Commit: https://github.com/vim/vim/commit/3787f26c2ed33732a36f26ebe46faeebfe0151af
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 7 21:54:01 2022 +0000
patch 8.2.4324: Vim9: script-local function name can start with "_"
Problem: Vim9: script-local function name can start with "_".
Solution: Check for leading capital after "s:". Correct error message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 07 Feb 2022 23:00:03 +0100 |
parents | 8c7836f8668d |
children | e311a80f8cbe |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -888,7 +888,7 @@ compile_nested_function(exarg_T *eap, cc return NULL; if (!ASCII_ISUPPER(is_global ? name_start[2] : name_start[0])) { - semsg(_(e_function_name_must_start_with_capital_or_s_str), name_start); + semsg(_(e_function_name_must_start_with_capital_str), name_start); return NULL; }