Issue #14617 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Assigned to Closed

Merged RDoc 6.0.3 at r62924

----------------------------------------
Bug #14617: rdoc crashes when expression contains embedded comment: no implicit conversion of nil into String (TypeError)
https://bugs.ruby-lang.org/issues/14617#change-71217

* Author: vo.x (Vit Ondruch)
* Status: Closed
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
* ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
RDoc might fail when comment is inside code, such as:

~~~ruby
def meth
  variable # comment
    .chain
end
~~~

I was made aware of this issue via this bug [1] report, but it has been already reported [2] and fixed [3] upstream. Would be nice if this is fixed in RDoc shipped in Ruby.

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1556732
[2]: https://github.com/ruby/rdoc/issues/585
[3]: https://github.com/ruby/rdoc/pull/586



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>