You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
uuzzrm commentedon Aug 15, 2026
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.