From 994b3f1dc61b3eb3021fad82f6a7b934af8d0961 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 9 Feb 2022 19:13:54 +0900 Subject: [ruby/rdoc] Allow cross references to negation operator method https://github.com/ruby/rdoc/commit/69cafb213a --- lib/rdoc/cross_reference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rdoc') 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 -- cgit v1.2.3