Posted 18 years ago
by Boyd
-
Sr. Software Developer,
Patterson Consulting, LLC
![Avatar](https://secure.gravatar.com/avatar/25cd2058e087cf4405ab7e859158e6c1.jpg?s=64&d=identicon&r=g)
I found a small error with the C# Language Syntax. The XMLComment is not properly terminated when a blank line is inserted. The Visual Studio editor does not allow blank lines in the middle of XML Comments.
The following code appears as a complete XML Comment block in Syntax Editor.I haven't fully investigated this, but it appears the problem is that the XMLCommentLineTerminatorToken is using the "{LineTerminatorWhitespaceMacro}* ///" lookahead pattern which allows it to match on blank lines. Should probably be changed to "{WhitespaceMacro}* ///"
The following code appears as a complete XML Comment block in Syntax Editor.
/// <summary>
/// This is the first line of my summary.
/// This line should NOT be part of the XML comments
/// due to the blank link.
/// </summary>