comparison src/vim9compile.c @ 21650:79a8d723a3d2 v8.2.1375

patch 8.2.1375: Vim9: method name with digit not accepted Commit: https://github.com/vim/vim/commit/c5da1fb7ea4126b6c70426cf0add51e720b7cd3f Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Aug 2020 15:45:04 +0200
parents 33fec2448697
children 84d38f98e5de
comparison
equal deleted inserted replaced
21649:cd7f9936b198 21650:79a8d723a3d2
3852 semsg(_(e_trailing_arg), pstart); 3852 semsg(_(e_trailing_arg), pstart);
3853 return FAIL; 3853 return FAIL;
3854 } 3854 }
3855 if (ASCII_ISALPHA(*p) && p[1] == ':') 3855 if (ASCII_ISALPHA(*p) && p[1] == ':')
3856 p += 2; 3856 p += 2;
3857 for ( ; eval_isnamec1(*p); ++p) 3857 for ( ; eval_isnamec(*p); ++p)
3858 ; 3858 ;
3859 if (*p != '(') 3859 if (*p != '(')
3860 { 3860 {
3861 semsg(_(e_missing_paren), *arg); 3861 semsg(_(e_missing_paren), *arg);
3862 return FAIL; 3862 return FAIL;