summaryrefslogtreecommitdiff
path: root/lib/rdoc/cross_reference.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-02-09 19:13:54 +0900
committergit <svn-admin@ruby-lang.org>2022-02-09 19:41:12 +0900
commit994b3f1dc61b3eb3021fad82f6a7b934af8d0961 (patch)
tree7a32af5799652ffb1615d52ca455ea06d64514ff /lib/rdoc/cross_reference.rb
parent8db06fe2c9c1103fd623e97c80660e41502e6580 (diff)
[ruby/rdoc] Allow cross references to negation operator method
https://github.com/ruby/rdoc/commit/69cafb213a
Diffstat (limited to 'lib/rdoc/cross_reference.rb')
-rw-r--r--lib/rdoc/cross_reference.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/cross_reference.rb b/lib/rdoc/cross_reference.rb
index 205dcc0cbd..7c0b405f3a 100644
--- a/lib/rdoc/cross_reference.rb
+++ b/lib/rdoc/cross_reference.rb
@@ -19,7 +19,7 @@ class RDoc::CrossReference
#
# See CLASS_REGEXP_STR
- METHOD_REGEXP_STR = '([A-Za-z]\w*[!?=]?|%|=(?:==?|~)|![=~]|\[\]=?|<(?:<|=>?)?|>[>=]?|[-+!]@?|\*\*?|[/%`|&^])(?:\([\w.+*/=<>-]*\))?'
+ METHOD_REGEXP_STR = '([A-Za-z]\w*[!?=]?|%|=(?:==?|~)|![=~]|\[\]=?|<(?:<|=>?)?|>[>=]?|[-+!]@?|\*\*?|[/%`|&^~])(?:\([\w.+*/=<>-]*\))?'
##
# Regular expressions matching text that should potentially have