Skip to content

Commit

Permalink
Replace cast tags for tSTRING_DVAR with typed midrule actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 18, 2024
1 parent 232f7b3 commit fd8e6e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -6308,13 +6308,13 @@ string_content : tSTRING_CONTENT
| tSTRING_DVAR
{
/* need to backup p->lex.strterm so that a string literal `%&foo,#$&,bar&` can be parsed */
$<strterm>$ = p->lex.strterm;
$$ = p->lex.strterm;
p->lex.strterm = 0;
SET_LEX_STATE(EXPR_BEG);
}
}<strterm>
string_dvar
{
p->lex.strterm = $<strterm>2;
p->lex.strterm = $2;
$$ = NEW_EVSTR($3, &@$);
nd_set_line($$, @3.end_pos.lineno);
/*% ripper: string_dvar!($:3) %*/
Expand Down

0 comments on commit fd8e6e8

Please sign in to comment.