mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
compile_prelude.rb: remove comments
* tool/compile_prelude.rb (translate): remove comments which are not used in compiled sources. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c46bafcbfd
commit
d21c35ca6a
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ class Prelude
|
|||
lines = []
|
||||
@preludes[filename] = result = [@preludes.size, filename, lines, sub]
|
||||
File.readlines(filename).each do |line|
|
||||
line.sub!(/(?:^|\s+)\#(?:$|\s.*)/, '')
|
||||
line.gsub!(/RbConfig::CONFIG\["(\w+)"\]/) {
|
||||
key = $1
|
||||
unless @mkconf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue