Fix a bug that :_1 to cause syntax error; fix #5295

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-01-21 14:45:06 +09:00
parent 56fdc449eb
commit 438d114917
2 changed files with 3488 additions and 3442 deletions
+1 -1
View File
@@ -6308,7 +6308,7 @@ parser_yylex(parser_state *p)
break;
case '_':
if (toklen(p) == 2 && ISDIGIT(tok(p)[1]) && p->nvars) {
if (p->lstate != EXPR_FNAME && toklen(p) == 2 && ISDIGIT(tok(p)[1]) && p->nvars) {
int n = tok(p)[1] - '0';
int nvar;
File diff suppressed because it is too large Load Diff