diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-05 15:43:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-05 15:43:44 +0200 |
commit | c5da1fb7ea4126b6c70426cf0add51e720b7cd3f (patch) | |
tree | 2be5f02283c81f0c1068e7f9daa870e9c02585bb | |
parent | a71e2633207557c31432c954194078cb6062d04f (diff) | |
download | vim-git-c5da1fb7ea4126b6c70426cf0add51e720b7cd3f.tar.gz |
patch 8.2.1375: Vim9: method name with digit not acceptedv8.2.1375
Problem: Vim9: method name with digit not accepted.
Solution: Use eval_isnamec() instead of eval_isnamec1(). (closes #6613)
-rw-r--r-- | src/testdir/test_vim9_expr.vim | 4 | ||||
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9compile.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim index 8be0dea36..aa705b216 100644 --- 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 index abf2af0c7..8bc928206 100644 --- 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 index e87634b31..b3cca5842 100644 --- 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 != '(') { |