summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parse.y9
1 files changed, 9 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 2eb1a0e1f8..62ba19c35c 100644
--- a/parse.y
+++ b/parse.y
@@ -1553,9 +1553,12 @@ command_asgn : lhs '=' command_rhs
}
| primary_value tCOLON2 tCONSTANT tOP_ASGN command_rhs
{
+ /*%%%*/
YYLTYPE location;
location.first_loc = @1.first_loc;
location.last_loc = @3.last_loc;
+ /*%
+ %*/
$$ = const_path_field($1, $3, &location);
$$ = new_const_op_assign($$, $4, $5, &@$);
}
@@ -2231,9 +2234,12 @@ arg : lhs '=' arg_rhs
}
| primary_value tCOLON2 tCONSTANT tOP_ASGN arg_rhs
{
+ /*%%%*/
YYLTYPE location;
location.first_loc = @1.first_loc;
location.last_loc = @3.last_loc;
+ /*%
+ %*/
$$ = const_path_field($1, $3, &location);
$$ = new_const_op_assign($$, $4, $5, &@$);
}
@@ -4663,9 +4669,12 @@ f_arg_item : f_arg_asgn
| tLPAREN f_margs rparen
{
ID tid = internal_id();
+ /*%%%*/
YYLTYPE location;
location.first_loc = @2.first_loc;
location.last_loc = @2.first_loc;
+ /*%
+ %*/
arg_var(tid);
/*%%%*/
if (dyna_in_block()) {