summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-20 05:39:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-20 05:39:02 +0000
commitb5be3e78938ba17d389df1c8f4bdbcc8b4c73550 (patch)
treecc65cac1c274e6d186ffa69f4fd1da1b81a9f648 /parse.y
parentb54f2addaaa69a3f8588200d1e9e933738398c6d (diff)
dsl.rb: ID constants
* ext/ripper/tools/dsl.rb (DSL#method_missing): expand ID constnats without parentheses. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index d78bd2f837..16ef15abe7 100644
--- a/parse.y
+++ b/parse.y
@@ -1646,7 +1646,7 @@ lhs : user_variable
/*%%%*/
$$ = attrset(p, $1, idCOLON2, $3, &@$);
/*% %*/
- /*% ripper: field!($1, "ID2VAL(idCOLON2)", $3) %*/
+ /*% ripper: field!($1, ID2VAL(idCOLON2), $3) %*/
}
| primary_value call_op tCONSTANT
{
@@ -3613,7 +3613,7 @@ numeric : simple_numeric
$$ = $2;
add_mark_object(p, $$->nd_lit = negate_lit(p, $$->nd_lit));
/*% %*/
- /*% ripper: unary!("ID2VAL(idUMinus)", $2) %*/
+ /*% ripper: unary!(ID2VAL(idUMinus), $2) %*/
}
;