summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 985e9be..004e242 100644
--- a/parse.y
+++ b/parse.y
@@ -2687,6 +2687,7 @@ primary : literal
{
/*%%%*/
$$ = NEW_CASE(0, $3);
+ nd_set_line($3, $<num>1);
/*%
$$ = dispatch2(case, Qnil, $3);
%*/
@@ -2937,6 +2938,10 @@ k_until : keyword_until
k_case : keyword_case
{
token_info_push("case");
+ /*%%%*/
+ $<num>$ = ruby_sourceline;
+ /*%
+ %*/
}
;