diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-01 01:29:50 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-01 01:29:50 +0000 |
commit | b4070513dde45474486955fbe1a3f3e5d787a342 (patch) | |
tree | 21d68f745589eda29ef605ff37827cb1889e6f12 /template/prelude.c.tmpl | |
parent | 59638882fb7a5e7ddc4ed863553b4a19cd5c356e (diff) |
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
Diffstat (limited to 'template/prelude.c.tmpl')
-rw-r--r-- | template/prelude.c.tmpl | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/template/prelude.c.tmpl b/template/prelude.c.tmpl index 34763cc730..ef024fd05c 100644 --- a/template/prelude.c.tmpl +++ b/template/prelude.c.tmpl @@ -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 |