diff options
| author | Bram Moolenaar <Bram@vim.org> | 2022-02-07 21:54:01 +0000 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2022-02-07 21:54:01 +0000 |
| commit | 3787f26c2ed33732a36f26ebe46faeebfe0151af (patch) | |
| tree | 4e3ce90a52311569592fe5e868a816a1cd19dfad /src/vim9compile.c | |
| parent | f681cfb90b972cb347b3d707c87e48f8accd0e2a (diff) | |
| download | vim-git-8.2.4324.tar.gz | |
patch 8.2.4324: Vim9: script-local function name can start with "_"v8.2.4324
Problem: Vim9: script-local function name can start with "_".
Solution: Check for leading capital after "s:". Correct error message.
Diffstat (limited to 'src/vim9compile.c')
| -rw-r--r-- | src/vim9compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index 080a53c69..debead418 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -888,7 +888,7 @@ compile_nested_function(exarg_T *eap, cctx_T *cctx, garray_T *lines_to_free) 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; } |
