ruby-changes:50081
From: nobu <ko1@a...>
Date: Sun, 4 Feb 2018 22:13:04 +0900 (JST)
Subject: [ruby-changes:50081] nobu:r62199 (trunk): match whole word
nobu 2018-02-04 22:12:57 +0900 (Sun, 04 Feb 2018) New Revision: 62199 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62199 Log: match whole word * tool/transform_mjit_header.rb: add word boundary anchors and match whole word to get rid of false `static` declarations, e.g., rb_str_new_static. Modified files: trunk/tool/transform_mjit_header.rb Index: tool/transform_mjit_header.rb =================================================================== --- tool/transform_mjit_header.rb (revision 62198) +++ tool/transform_mjit_header.rb (revision 62199) @@ -166,7 +166,7 @@ loop do https://github.com/ruby/ruby/blob/trunk/tool/transform_mjit_header.rb#L166 extern_names << decl_name decl[match.begin(0)...match.end(0)] = '' - if decl =~ /static/ + if decl =~ /\bstatic\b/ STDERR.puts "warning: a static decl inside external definition of '#{decl_name}'" end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/