Open
Description
Information
- Language: C# (csharp)
- Plugins: prism-csharp.js
Description
Attributes are only correctly identified when not immediately following a comment.
Code snippet
The code being highlighted incorrectly.
class MyClass
{
/// <summary>
/// This is a doc comment
/// </summary>
[Attribute]
public string MyString { get; set; }
/// <summary>
/// This is a doc comment
/// </summary>
[Attribute(argument)]
public string MyString { get; set; }
// This is a normal comment
[Attribute]
public string MyString { get; set; }
// This is without a comment:
[Attribute]
public string MyString { get; set; }
[Attribute(argument)]
public string MyString { get; set; }
}