ruby-changes:48833
From: usa <ko1@a...>
Date: Fri, 1 Dec 2017 10:29:56 +0900 (JST)
Subject: [ruby-changes:48833] usa:r60950 (trunk): revert r60873
usa 2017-12-01 10:29:50 +0900 (Fri, 01 Dec 2017) New Revision: 60950 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60950 Log: revert r60873 * template/prelude.c.tmpl (translate): revert r60873 because when some errors or warnings are shown their line numbers are shifted. Modified files: trunk/template/prelude.c.tmpl Index: template/prelude.c.tmpl =================================================================== --- template/prelude.c.tmpl (revision 60949) +++ template/prelude.c.tmpl (revision 60950) @@ -42,7 +42,6 @@ class Prelude https://github.com/ruby/ruby/blob/trunk/template/prelude.c.tmpl#L42 result = [@preludes.size, @vpath.strip(filename), lines, sub] @vpath.foreach(filename) do |line| @preludes[filename] ||= result - next if /\A\s*\#.*\n\z/ =~ line line.sub!(/(?:^|\s+)\#(?:$|[#\s].*)/, '') line.sub!(/require(_relative)?\s*\(?\s*(["'])(.*?)(?:\.rb)?\2\)?/) do orig, rel, path = $&, $2, $3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/