lsegal/yard — pull request #578 by noahgibbs (2012-07-26 20:29:49+00:00)
Title: Don't crash with #comment after =begin/=end

I encountered this on a large, complex piece of code at work that used =begin/=end followed by a regular comment. YARD tried to append one to the other and died with an exception. This pull request seems to fix it, as does adding a newline between =end and the next comment.

Here is the offending excerpt:

=begin
if( encodeParams['MuxFormat'].nil? )
raise "Must specify muxing format"
else
@muxFormats	= @muxFormats + encodeParams['MuxFormat'] + ','
end
=end
#optional params