lib/rabbit/parser/rd.rb in rabbit-0.6.4 vs lib/rabbit/parser/rd.rb in rabbit-0.9.0

- old
+ new

@@ -12,10 +12,11 @@ /^= /.match(source.read) end end def parse - source = "=begin\n#{@source.read}\n=end\n" + source = @source.read.gsub(/\r\n/, "\n") + source = "=begin\n#{source}\n=end\n" tree = ::RD::RDTree.new(source) visitor = RD2RabbitVisitor.new(@canvas) visitor.visit(tree) rescue Racc::ParseError message = format_parse_error_message($!.message, source)