diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-05-19 00:27:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-05-19 00:27:34 +0900 |
commit | fd8e6e8c54708c2cfde689afe5762b4e206ffe31 (patch) | |
tree | 300e5a5e8b14721e495bd88ce80456017a2d2d86 | |
parent | 232f7b37cf1e13d0fff6c8ffc8a342f1c126cd98 (diff) |
Replace cast tags for `tSTRING_DVAR` with typed midrule actions
-rw-r--r-- | parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) %*/ |