ruby-changes:56404
From: Nobuyoshi <ko1@a...>
Date: Wed, 10 Jul 2019 00:44:20 +0900 (JST)
Subject: [ruby-changes:56404] Nobuyoshi Nakada: 49cad67635 (master): Removed duplicate assignment
https://git.ruby-lang.org/ruby.git/commit/?id=49cad67635 From 49cad676351120927a9eda5fea58334c3d32f858 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 10 Jul 2019 00:20:00 +0900 Subject: Removed duplicate assignment This `last_state` is set to `lex.state` just before the `switch` statement, and `token_flush` nor `nextc` never change the state. diff --git a/parse.y b/parse.y index 43fa102..e75c0b4 100644 --- a/parse.y +++ b/parse.y @@ -8845,7 +8845,6 @@ parser_yylex(struct parser_params *p) https://github.com/ruby/ruby/blob/trunk/parse.y#L8845 return '='; case '<': - last_state = p->lex.state; c = nextc(p); if (c == '<' && !IS_lex_state(EXPR_DOT | EXPR_CLASS) && -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/