ruby-changes:49855
From: nobu <ko1@a...>
Date: Sat, 20 Jan 2018 14:39:10 +0900 (JST)
Subject: [ruby-changes:49855] nobu:r61973 (trunk): dsl.rb: indent
nobu 2018-01-20 14:39:00 +0900 (Sat, 20 Jan 2018) New Revision: 61973 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61973 Log: dsl.rb: indent * ext/ripper/tools/dsl.rb (DSL#generate): indent after surrounding by braces. Modified files: trunk/ext/ripper/tools/dsl.rb Index: ext/ripper/tools/dsl.rb =================================================================== --- ext/ripper/tools/dsl.rb (revision 61972) +++ ext/ripper/tools/dsl.rb (revision 61973) @@ -31,11 +31,11 @@ class DSL https://github.com/ruby/ruby/blob/trunk/ext/ripper/tools/dsl.rb#L31 def generate s = "$$" s = "p->result" if @final - s = "\t\t\t#{ s } = #@code;" + s = "#{ s } = #@code;" s << "ripper_error(p);" if @error s = "{#{ s }}" if @brace s = "$1 = var_field(p, $1);" + s if @var_field_1 - s + "\t\t\t#{s}" end def method_missing(event, *args) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/