dotnet / csharp-tmLanguage

Syntax grammar used for C# colorization
MIT License
69 stars 34 forks source link

[Textmate] `scoped ref` modifier #306

Open sharpchen opened 10 months ago

sharpchen commented 10 months ago

Details

What editor are you seeing the problem in? (e.g. Atom, Visual Studio Code, etc.) vscode What version of the editor are you using? 1.85.1 What color theme are you using? dark plus

Repro

class C
{
    public static Span<T> CreateSpan<T>(scoped ref T reference, int length)
    {
        return MemoryMarshal.CreateSpan(ref reference, length);
    }
}

image

Please provide a code example and (optionally) a screenshot demonstrating the problem.