From: Eric Hodel Date: 2009-09-05T04:05:56+09:00 Subject: Re: Better RDoc Inline Markup On Sep 3, 2009, at 08:16, Intransition wrote: > RDoc's SimpleMarkup doesn't catch all the cases of inline markup > that is really useful for a Ruby documentation. I think it's checking > for \w+ only, but adding some other punctuation marks would be > helpful. Namely, none of the following work b/c of punctuation marks: > > +ActiveRecord::Base+ > > +merge!+ > > +is_a?+ > > +name=+ > > +object.call+ > > It would great if the Regexp could be expanded to catch these cases. Wait, did you even try it? $ echo '+ActiveRecord::Base+ +merge!+ +is_a?+ +name=+ +object.call+ +:symbol+' | rdoc --pipe

+ActiveRecord::Base+ merge! is_a? name= object.call :symbol

They all work in RDoc 2.4.3 except A::B. I even threw in :symbol.