From 193b158b2320c8dc4ef6368965300d84c152e125 Mon Sep 17 00:00:00 2001 From: mame Date: Fri, 19 Jan 2018 16:24:07 +0000 Subject: parse.y: Remove double meaning of backref_assign_error git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/ripper/tools/dsl.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/ripper') diff --git a/ext/ripper/tools/dsl.rb b/ext/ripper/tools/dsl.rb index 6b4742f17c..524c0e8f8d 100644 --- a/ext/ripper/tools/dsl.rb +++ b/ext/ripper/tools/dsl.rb @@ -9,6 +9,7 @@ class DSL @error = options.include?("error") @brace = options.include?("brace") @final = options.include?("final") + @var_field_1 = options.include?("var_field_1") # create $1 == "$1", $2 == "$2", ... re, s = "", "" @@ -33,6 +34,7 @@ class DSL s = "\t\t\t#{ s } = #@code;" s << "ripper_error(p);" if @error s = "{#{ s }}" if @brace + s = "$1 = var_field(p, $1);" + s if @var_field_1 s end -- cgit v1.2.3