ruby-changes:49562
From: nobu <ko1@a...>
Date: Mon, 8 Jan 2018 15:55:16 +0900 (JST)
Subject: [ruby-changes:49562] nobu:r61678 (trunk): node.c: show newline node mark
nobu 2018-01-08 15:55:12 +0900 (Mon, 08 Jan 2018) New Revision: 61678 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61678 Log: node.c: show newline node mark Modified files: trunk/node.c Index: node.c =================================================================== --- node.c (revision 61677) +++ node.c (revision 61678) @@ -24,8 +24,11 @@ https://github.com/ruby/ruby/blob/trunk/node.c#L24 #define A_LIT(lit) AR(rb_inspect(lit)) #define A_OPERATOR(id) add_operator(buf, (id)) #define A_NODE_HEADER(node, term) \ - rb_str_catf(buf, "@ %s (line: %d, code_range: (%d,%d)-(%d,%d))"term, \ - ruby_node_name(nd_type(node)), nd_line(node), nd_first_lineno(node), nd_first_column(node), nd_last_lineno(node), nd_last_column(node)) + rb_str_catf(buf, "@ %s (line: %d, code_range: (%d,%d)-(%d,%d))%s"term, \ + ruby_node_name(nd_type(node)), nd_line(node), \ + nd_first_lineno(node), nd_first_column(node), \ + nd_last_lineno(node), nd_last_column(node), \ + (node->flags & NODE_FL_NEWLINE ? "*" : "")) #define A_FIELD_HEADER(len, name, term) \ rb_str_catf(buf, "+- %.*s:"term, (len), (name)) #define D_FIELD_HEADER(len, name, term) (A_INDENT, A_FIELD_HEADER(len, name, term)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/