Skip to content

Incorrect highlighting of await #83

@mjbvz

Description

@mjbvz

From https://stackoverflow.com/questions/45988693/vs-code-c-sharp-syntax-highlighting-bug

Details

VS Code with latest grammar pulled in manually from this repo.

Shows up with Dark+ and Light+ themes (plus others)

Repro

using System;
class Z
{
    static void Main(String[] args)
    {
		await someTask; // highlighted as if someTask were a variable of type await
		await someThing.SomeTask; // highlighted correctly
		await someThing.DoSomething(); // highlighted correctly
    }
}

Await is not correctly colored in some cases:

screen shot 2017-08-31 at 5 40 15 pm

In the first example, the scoped of await is storage.type.cs instead of keyword.other.await.cs

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