ruby-changes:55060
From: svn <ko1@a...>
Date: Fri, 15 Mar 2019 14:20:03 +0900 (JST)
Subject: [ruby-changes:55060] svn:r67267 (trunk): * expand tabs.
svn 2019-03-15 14:19:58 +0900 (Fri, 15 Mar 2019) New Revision: 67267 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67267 Log: * expand tabs. Modified files: trunk/compile.c trunk/node.c Index: node.c =================================================================== --- node.c (revision 67266) +++ node.c (revision 67267) @@ -557,7 +557,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L557 return; case NODE_HASH: - if (!node->nd_brace) { + if (!node->nd_brace) { ANN("keyword arguments"); ANN("format: nd_head"); ANN("example: a: 1, b: 2"); @@ -567,8 +567,8 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L567 ANN("format: { [nd_head] }"); ANN("example: { 1 => 2, 3 => 4 }"); } - F_CUSTOM1(nd_brace, "keyword arguments or hash literal") { - switch (node->nd_brace) { + F_CUSTOM1(nd_brace, "keyword arguments or hash literal") { + switch (node->nd_brace) { case 0: A("0 (keyword argument)"); break; case 1: A("1 (hash literal)"); break; } Index: compile.c =================================================================== --- compile.c (revision 67266) +++ compile.c (revision 67267) @@ -3801,7 +3801,7 @@ compile_keyword_arg(rb_iseq_t *iseq, LIN https://github.com/ruby/ruby/blob/trunk/compile.c#L3801 assert(nd_type(node) == NODE_ARRAY); if (!key_node) { - if (flag && !root_node->nd_brace) *flag |= VM_CALL_KW_SPLAT; + if (flag && !root_node->nd_brace) *flag |= VM_CALL_KW_SPLAT; return FALSE; } else if (nd_type(key_node) == NODE_LIT && RB_TYPE_P(key_node->nd_lit, T_SYMBOL)) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/