XmlDoc comment is not detected correctly #401

Open
opened 2014-04-30 14:08:21 -05:00 by dgrunwald · 0 comments
dgrunwald commented 2014-04-30 14:08:21 -05:00 (Migrated from github.com)

The following program:

class Program
{
    /////////////////////////////////////////////////////////////////////////////
    // Overriden Functions
    #region Package Members
    /// <summary>
    /// Initialization
    /// </summary>
    protected override void Initialize()
    {
    }
    #endregion
}

produces the warning "Xml doc comment is not placed on a valid language element".

This is a parser bug: the line '////////' is detected as an XML documentation comment, even though it does not start with exactly 3 slashes.

The following program: ``` class Program { ///////////////////////////////////////////////////////////////////////////// // Overriden Functions #region Package Members /// <summary> /// Initialization /// </summary> protected override void Initialize() { } #endregion } ``` produces the warning "Xml doc comment is not placed on a valid language element". This is a parser bug: the line '////////' is detected as an XML documentation comment, even though it does not start with exactly 3 slashes.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-icsharpcode/NRefactory#401
No description provided.