diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-04 05:17:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-04 05:17:04 +0000 |
commit | d21c35ca6a0504beec2df2ccb42a3895601e4fbb (patch) | |
tree | 01b70ebb51eba43e52b295de396d8f8f22e30036 /tool/compile_prelude.rb | |
parent | c46bafcbfd760a14d2f22c537425ceb174d7abac (diff) |
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
Diffstat (limited to 'tool/compile_prelude.rb')
-rw-r--r-- | tool/compile_prelude.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/compile_prelude.rb b/tool/compile_prelude.rb index 4f63b798c4..9113fd9fe8 100644 --- a/tool/compile_prelude.rb +++ b/tool/compile_prelude.rb @@ -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 |