1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

dsl.rb: indent

* ext/ripper/tools/dsl.rb (DSL#generate): indent after surrounding
  by braces.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-01-20 05:39:00 +00:00
parent 4680cecd57
commit 23830ab9b2

View file

@ -31,11 +31,11 @@ class DSL
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)