summaryrefslogtreecommitdiff
path: root/ext/ripper
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-20 05:39:00 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-20 05:39:00 (GMT)
commit23830ab9b27242c06b48075f1b9cd76f941b6cd1 (patch)
tree96acbffa11ccdfcd5660d02cdf70fa78ab92e6c3 /ext/ripper
parent4680cecd5726dcc7d74753f0652d927771a8cf63 (diff)
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
Diffstat (limited to 'ext/ripper')
-rw-r--r--ext/ripper/tools/dsl.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ripper/tools/dsl.rb b/ext/ripper/tools/dsl.rb
index 524c0e8..ce7501b 100644
--- a/ext/ripper/tools/dsl.rb
+++ b/ext/ripper/tools/dsl.rb
@@ -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)