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
|
# have been suppressed, since the suppression characters are removed by the
|
||||||
# code that is triggered.
|
# code that is triggered.
|
||||||
|
|
||||||
CROSSREF_REGEXP = /(?:^|\s)
|
CROSSREF_REGEXP = /(?:^|[\s()])
|
||||||
(
|
(
|
||||||
(?:
|
(?:
|
||||||
# A::B::C.meth
|
# A::B::C.meth
|
||||||
|
|
|
@ -358,6 +358,8 @@ class TestRDocMarkupAttributeManager < RDoc::TestCase
|
||||||
@am.flow("#fred dogs'"))
|
@am.flow("#fred dogs'"))
|
||||||
|
|
||||||
assert_equal(["cats' ", crossref("#fred")].flatten, @am.flow("cats' #fred"))
|
assert_equal(["cats' ", crossref("#fred")].flatten, @am.flow("cats' #fred"))
|
||||||
|
|
||||||
|
assert_equal(["(", crossref("#fred"), ")"].flatten, @am.flow("(#fred)"))
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_tt_html
|
def test_tt_html
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue