# HG changeset patch # User Bram Moolenaar # Date 1596635104 -7200 # Node ID 79a8d723a3d289b86330df40b9b0d75cc7e45bdf # Parent cd7f9936b1981254b16a49b02955f89ccbb869e0 patch 8.2.1375: Vim9: method name with digit not accepted Commit: https://github.com/vim/vim/commit/c5da1fb7ea4126b6c70426cf0add51e720b7cd3f Author: Bram Moolenaar Date: Wed Aug 5 15:43:44 2020 +0200 patch 8.2.1375: Vim9: method name with digit not accepted Problem: Vim9: method name with digit not accepted. Solution: Use eval_isnamec() instead of eval_isnamec1(). (closes https://github.com/vim/vim/issues/6613) diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim --- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -1674,14 +1674,14 @@ def Echo(arg: any): string return arg enddef -def s:EchoArg(arg: any): string +def s:Echo4Arg(arg: any): string return arg enddef def Test_expr7_call() assert_equal('yes', 'yes'->Echo()) assert_equal('yes', 'yes' - ->s:EchoArg()) + ->s:Echo4Arg()) assert_equal(1, !range(5)->empty()) assert_equal([0, 1, 2], --3->range()) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1375, +/**/ 1374, /**/ 1373, diff --git a/src/vim9compile.c b/src/vim9compile.c --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -3854,7 +3854,7 @@ compile_subscript( } if (ASCII_ISALPHA(*p) && p[1] == ':') p += 2; - for ( ; eval_isnamec1(*p); ++p) + for ( ; eval_isnamec(*p); ++p) ; if (*p != '(') {