Skip to content

Recognize xrefs with escaped backticks on generic type names - #71

Merged
carlossanlop merged 1 commit into
dotnet:mainfrom
jeffhandley:jeffhandley/fix-generic-xrefs
Apr 9, 2021
Merged

carlossanlop merged 1 commit into
dotnet:mainfrom
jeffhandley:jeffhandley/fix-generic-xrefs

Conversation

@jeffhandley

Copy link
Copy Markdown
Member

Fixes #66 by:

  1. Recognizing either the ` character or the %60 escape sequence before a number of type parameters
    • The regular expressions were restructured a bit to support this construction
  2. Replacing %60 with ` when parsing docId values (before replacing ` with {T})

This PR is based on #63 and #70; those should be finished and merged before this one (rebasing this one afterward).

@jeffhandley
jeffhandley force-pushed the jeffhandley/fix-generic-xrefs branch from 098b8f2 to 865ddb0 Compare April 1, 2021 19:54

@carlossanlop carlossanlop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the change, @jeffhandley ! I think it looks good as it is, although I'm thinking that if we ever need to keep expanding the regex strings, we might have to refactor them to avoid making them more complicated.

@carlossanlop
carlossanlop merged commit 8ebd028 into dotnet:main Apr 9, 2021
@jeffhandley
jeffhandley deleted the jeffhandley/fix-generic-xrefs branch April 15, 2021 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some xrefs for generics produce invalid triple slash comments

2 participants