From: masayoshi takahashi Date: 2008-10-13T16:27:22+09:00 Subject: [ruby-dev:36710] source file name of 'mismatched indentations' warning in ruby 1.9 高橋征義です。 Ruby 1.9にはインデントレベルの整合性を調べて警告を吐くように なっているようですが、requireでスクリプトを読み込む際、読み込まれる 対象のファイルのインデントがおかしい場合でも、読み込みを行う側の スクリプトのファイル名しか表示されません。 $ ./bin/ruby -w test0.rb test0.rb:1: warning: mismatched indentations: line 1:'class' and line 2:'end' $ cat test0.rb require 'test' $ cat test.rb class Foo end 例えば上記のような場合、test.rbの名前も表示されてほしいのですが、 それは難しい(or するべきではない)のでしょうか? 高橋征義 (takahashimm@gmail.com)