Bugs: Browse | Submit New | Admin

[#12250] links to methods ending in ? broken

Date:
2007-07-13 08:57
Priority:
3
Submitted By:
Ryan Davis (zenspider)
Assigned To:
Eric Hodel (drbrain)
Category:
Documentation, ri, and rdoc
State:
Open
Platform:
 
Summary:
links to methods ending in ? broken

Detailed description
##
# BlahClass.is_blah?

will not link.

I think we can blame fortran! (blame canada!). Please review.

Index: html_generator.rb
===================================================================
--- html_generator.rb	(revision 12725)
+++ html_generator.rb	(working copy)
@@ -213,12 +213,12 @@
 
         # class names, variable names, or instance variables
         @markup.add_special(/(
-                               \w+(::\w+)*[.\#]\w+(\([\.\w+\*\/\+\-\=\<\>]+\))?  # A::B.meth(**) (for operator
in Fortran95)
-                             | \#\w+(\([.\w\*\/\+\-\=\<\>]+\))?  #  meth(**) (for operator in Fortran95)
-                             | \b([A-Z]\w*(::\w+)*[.\#]\w+)  #    A::B.meth
+                               \b([A-Z]\w*(::\w+)*[.\#]\w+[!?=]?)  #    A::B.meth
                              | \b([A-Z]\w+(::\w+)*)       #    A::B..
                              | \#\w+[!?=]?                #    #meth_name 
                              | \b\w+([_\/\.]+\w+)*[!?=]?  #    meth_name
+                             | \w+(::\w+)*[.\#]\w+(\([\.\w+\*\/\+\-\=\<\>]+\))?  # A::B.meth(**) (for operator
in Fortran95)
+                             | \#\w+(\([.\w\*\/\+\-\=\<\>]+\))?  #  meth(**) (for operator in Fortran95)
                              )/x, 
                             :CROSSREF)
 

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item