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
<p>
+ActiveRecord::Base+ <tt>merge!</tt> <tt>is_a?</tt> <tt>name=</tt>
<tt>object.call</tt> <tt>:symbol</tt>
</p>

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