diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sample/test.rb | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Aug 6 16:57:08 2007 Koichi Sasada <ko1@atdot.net> + + * sample/test.rb: fix to output file name if it contains + invalid syntax. + Mon Aug 6 16:41:22 2007 Koichi Sasada <ko1@atdot.net> * parse.y (value_expr_gen): fix to cause "void value expression" diff --git a/sample/test.rb b/sample/test.rb index 387630d66e..62695efbce 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -1880,12 +1880,13 @@ end def valid_syntax?(code, fname) eval("BEGIN {return true}\n#{code}", nil, fname, 0) rescue Exception - puts $!.message + STDERR.puts $!.message false end for script in Dir["#{dir}{lib,sample,ext}/**/*.rb"] unless valid_syntax? IO::read(script), script + STDERR.puts script $bad = true end end |