Skip to content

csharp: class_recall_pct - class_start regex missing readonly and ref modifiers #1708

Closed

Description

@squid-protocol

The class_start regex for C# explicitly enumerates allowed modifiers but omits readonly and ref. As a result, it structurally fails to match modern C# readonly struct and readonly ref struct declarations.

Activity

  1. added
    bug
    on Aug 15, 2026
  2. uuzzrm commented on Aug 15, 2026

    @uuzzrm
    Contributor

    Fixed in #1710: the csharp \class_start\ modifier alternation now includes
    eadonly\ and
    ef, so
    eadonly struct,
    ef struct, and
    eadonly ref struct\ declarations are found. Verified against the roslyn corpus files referenced above — found_classes 22 -> 24 (class recall 91.7% -> 100%), extra_classes stays 0.

  3. added this to the v2.4.8 milestone on Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions