mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
revert r60873
* template/prelude.c.tmpl (translate): revert r60873 because when some errors or warnings are shown their line numbers are shifted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
59638882fb
commit
b4070513dd
1 changed files with 0 additions and 1 deletions
|
@ -42,7 +42,6 @@ class Prelude
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue