Skip to content

Commit 88147d0

Browse files
straight-shootaMartin Verzilli
authored and
Martin Verzilli
committedDec 18, 2017
Docs: Fix matching nested type references in markdown renderer
Closes #5293
1 parent bec582a commit 88147d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/compiler/crystal/tools/doc/markdown_doc_renderer.cr

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class Crystal::Doc::MarkdownDocRenderer < Markdown::HTMLRenderer
4646

4747
# Check Type#method(...) or Type or #method(...)
4848
text = text.gsub /\b
49-
((?:\:\:)?[A-Z]\w+(?:\:\:[A-Z]\w+)?(?:\#|\.)(?:\w|\<|\=|\>|\+|\-|\*|\/|\[|\]|\&|\||\?|\!|\^|\~)+(?:\?|\!)?(?:\(.+?\))?)
49+
((?:\:\:)?[A-Z]\w+(?:\:\:[A-Z]\w+)*(?:\#|\.)(?:\w|\<|\=|\>|\+|\-|\*|\/|\[|\]|\&|\||\?|\!|\^|\~)+(?:\?|\!)?(?:\(.+?\))?)
5050
|
51-
((?:\:\:)?[A-Z]\w+(?:\:\:[A-Z]\w+)?)
51+
((?:\:\:)?[A-Z]\w+(?:\:\:[A-Z]\w+)*)
5252
|
5353
((?:\#|\.)(?:\w|\<|\=|\>|\+|\-|\*|\/|\[|\]|\&|\||\?|\!|\^|\~)+(?:\?|\!)?(?:\(.+?\))?)
5454
/x do |match_text, match|

0 commit comments

Comments
 (0)
Please sign in to comment.