From bbbf150e4d20bd618c4b9e702a60638b045317d8 Mon Sep 17 00:00:00 2001 From: "U.Nakamura" Date: Wed, 26 Jul 2023 11:02:57 +0900 Subject: Revert "merge revision(s) 91c004885fc75a93cadf0094fa86ec3bd0ec25f5: [Backport #19025]" This reverts commit e55dde3bdddbc595be12e7184a23e729647eb989. --- parse.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index ab61f5378d..11b158954d 100644 --- a/parse.y +++ b/parse.y @@ -9241,9 +9241,9 @@ parse_ident(struct parser_params *p, int c, int cmd_state) ident = tokenize_ident(p, last_state); if (result == tCONSTANT && is_local_id(ident)) result = tIDENTIFIER; if (!IS_lex_state_for(last_state, EXPR_DOT|EXPR_FNAME) && - (result == tIDENTIFIER) && /* not EXPR_FNAME, not attrasgn */ - (lvar_defined(p, ident) || NUMPARAM_ID_P(ident))) { - SET_LEX_STATE(EXPR_END|EXPR_LABEL); + (result == tIDENTIFIER) && /* not EXPR_FNAME, not attrasgn */ + lvar_defined(p, ident)) { + SET_LEX_STATE(EXPR_END|EXPR_LABEL); } return result; } -- cgit v1.2.3