diff options
Diffstat (limited to 'tool')
-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 |