ruby-changes:50132
From: kazu <ko1@a...>
Date: Tue, 6 Feb 2018 21:40:47 +0900 (JST)
Subject: [ruby-changes:50132] kazu:r62250 (trunk): Remove unused capture
kazu 2018-02-06 21:40:41 +0900 (Tue, 06 Feb 2018) New Revision: 62250 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62250 Log: Remove unused capture Because `Regexp#to_s` add `(?-mix:)`, it is not unnecessary. Modified files: trunk/tool/transform_mjit_header.rb Index: tool/transform_mjit_header.rb =================================================================== --- tool/transform_mjit_header.rb (revision 62249) +++ tool/transform_mjit_header.rb (revision 62250) @@ -9,7 +9,7 @@ PROGRAM = File.basename($0, ".*") https://github.com/ruby/ruby/blob/trunk/tool/transform_mjit_header.rb#L9 module MJITHeader ATTR_VALUE_REGEXP = /[^()]|\([^()]*\)/ - ATTR_REGEXP = /__attribute__\s*\(\((#{ATTR_VALUE_REGEXP})*\)\)/ + ATTR_REGEXP = /__attribute__\s*\(\(#{ATTR_VALUE_REGEXP}*\)\)/ FUNC_HEADER_REGEXP = /\A(\s*#{ATTR_REGEXP})*[^\[{(]*\((#{ATTR_REGEXP}|[^()])*\)(\s*#{ATTR_REGEXP})*\s*/ TARGET_NAME_REGEXP = /\A(rb|ruby|vm|insn|attr)_/ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/