1
0
Fork 0
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:
Nobuyoshi Nakada 2019-10-25 15:03:18 +09:00 committed by aycabta
parent 5aacb30455
commit d70fdeedf0
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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