summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-05-19 00:27:34 +0900
committerNobuyoshi Nakada <[email protected]>2024-05-19 00:27:34 +0900
commitfd8e6e8c54708c2cfde689afe5762b4e206ffe31 (patch)
tree300e5a5e8b14721e495bd88ce80456017a2d2d86
parent232f7b37cf1e13d0fff6c8ffc8a342f1c126cd98 (diff)
Replace cast tags for `tSTRING_DVAR` with typed midrule actions
-rw-r--r--parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index de52170cb4..38b8a74e4f 100644
--- a/parse.y
+++ b/parse.y
@@ -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) %*/