diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-02-09 18:56:36 +0900 |
---|---|---|
committer | git <[email protected]> | 2022-02-09 19:41:11 +0900 |
commit | 8db06fe2c9c1103fd623e97c80660e41502e6580 (patch) | |
tree | 9d65a42ec832d19d111c1154493cc47518257c3a /lib/rdoc/cross_reference.rb | |
parent | cbd54cba03d0a0ecae1df590ca78751362fda826 (diff) |
[ruby/rdoc] Allow cross references to logical operator methods
https://github.com/ruby/rdoc/commit/17c0da304d
Diffstat (limited to 'lib/rdoc/cross_reference.rb')
-rw-r--r-- | lib/rdoc/cross_reference.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/cross_reference.rb b/lib/rdoc/cross_reference.rb index 90c17a52ea..205dcc0cbd 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 |