diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-20 05:39:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-20 05:39:02 +0000 |
commit | b5be3e78938ba17d389df1c8f4bdbcc8b4c73550 (patch) | |
tree | cc65cac1c274e6d186ffa69f4fd1da1b81a9f648 /parse.y | |
parent | b54f2addaaa69a3f8588200d1e9e933738398c6d (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.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) %*/ } ; |