ruby-changes:30281
From: nobu <ko1@a...>
Date: Fri, 2 Aug 2013 23:24:26 +0900 (JST)
Subject: [ruby-changes:30281] nobu:r42333 (trunk): parse.y: ripper for new literals
nobu 2013-08-02 23:24:17 +0900 (Fri, 02 Aug 2013) New Revision: 42333 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42333 Log: parse.y: ripper for new literals * parse.y (ripper_validate_object): ripper support for new literals, tRATIONAL and tIMAGINARY. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 42332) +++ parse.y (revision 42333) @@ -11040,12 +11040,14 @@ ripper_validate_object(VALUE self, VALUE https://github.com/ruby/ruby/blob/trunk/parse.y#L11040 if (SYMBOL_P(x)) return x; if (!rb_is_pointer_to_heap(x)) rb_raise(rb_eArgError, "invalid pointer: %p", x); - switch (TYPE(x)) { + switch (BUILTIN_TYPE(x)) { case T_STRING: case T_OBJECT: case T_ARRAY: case T_BIGNUM: case T_FLOAT: + case T_COMPLEX: + case T_RATIONAL: return x; case T_NODE: if (nd_type(x) != NODE_LASGN) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/