Skip to content

Commit

Permalink
Support linking #==
Browse files Browse the repository at this point in the history
See related commits:

- ebc6666 for #===
- 4943d20 for #[], #[]=, #<<, and #>>
  • Loading branch information
flavorjones committed Oct 11, 2021
1 parent 490e46e commit 8e47f78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rdoc/cross_reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class RDoc::CrossReference
#
# See CLASS_REGEXP_STR

METHOD_REGEXP_STR = '([a-z]\w*[!?=]?|%|===|\[\]=?|<<|>>|\+@|-@|-|\+|\*)(?:\([\w.+*/=<>-]*\))?'
METHOD_REGEXP_STR = '([a-z]\w*[!?=]?|%|===?|\[\]=?|<<|>>|\+@|-@|-|\+|\*)(?:\([\w.+*/=<>-]*\))?'

##
# Regular expressions matching text that should potentially have
Expand Down
2 changes: 1 addition & 1 deletion test/rdoc/test_rdoc_cross_reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def refute_ref name
def test_METHOD_REGEXP_STR
re = /#{RDoc::CrossReference::METHOD_REGEXP_STR}/

%w'=== [] []= << >>'.each do |x|
%w'== === [] []= << >>'.each do |x|
re =~ x
assert_equal x, $&
end
Expand Down

0 comments on commit 8e47f78

Please sign in to comment.