lib/rdoc/cross_reference.rb in rdoc-6.2.0 vs lib/rdoc/cross_reference.rb in rdoc-6.2.1
- old
+ new
@@ -26,11 +26,11 @@
# cross-reference links generated are passed to add_regexp_handling. Note
# that these expressions are meant to pick up text for which cross-references
# 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
#{CLASS_REGEXP_STR}(?:[.#]|::)#{METHOD_REGEXP_STR}
@@ -74,10 +74,10 @@
##
# Version of CROSSREF_REGEXP used when <tt>--hyperlink-all</tt> is specified.
ALL_CROSSREF_REGEXP = /
- (?:^|\s)
+ (?:^|[\s()])
(
(?:
# A::B::C.meth
#{CLASS_REGEXP_STR}(?:[.#]|::)#{METHOD_REGEXP_STR}