Skip to content

[CSharp] Attributes following comments are either mis-tagged or not tagged as class-name #3799

Open
@Nintynuts

Description

@Nintynuts

Information

  • Language: C# (csharp)
  • Plugins: prism-csharp.js

Description
Attributes are only correctly identified when not immediately following a comment.

Code snippet

Test page

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; }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions