Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
c# region support for code snippets broken by #endregion with extra text #1200
The regex for detecting #endregion in c# code snippet support expects to only have whitespace to the end of the line after #endregion. If there is extra text the #endregion is not detected, resulting in an error.
Documentation build fails.
Minimal repro steps
The code snippet is generated as normal.
Error occurs and build fails.
Further technical details
Whilst adding text after an #endregion has no effect, it is not actually prohibited, and so should be allowed for.
Changing the CSharpCodeSnippetCommentEndLineRegex value in Microsoft.DocAsCode.Dfm.TagNameBlockPathQueryOption should alleviate this.