mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Make (#methodname)
a link
This commit is contained in:
parent
5aacb30455
commit
d70fdeedf0
2 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,7 @@ class RDoc::CrossReference
|
|||
# have been suppressed, since the suppression characters are removed by the
|
||||
# code that is triggered.
|
||||
|
||||
CROSSREF_REGEXP = /(?:^|\s)
|
||||
CROSSREF_REGEXP = /(?:^|[\s()])
|
||||
(
|
||||
(?:
|
||||
# A::B::C.meth
|
||||
|
|
|
@ -358,6 +358,8 @@ class TestRDocMarkupAttributeManager < RDoc::TestCase
|
|||
@am.flow("#fred dogs'"))
|
||||
|
||||
assert_equal(["cats' ", crossref("#fred")].flatten, @am.flow("cats' #fred"))
|
||||
|
||||
assert_equal(["(", crossref("#fred"), ")"].flatten, @am.flow("(#fred)"))
|
||||
end
|
||||
|
||||
def test_tt_html
|
||||
|
|
Loading…
Reference in a new issue