Skip to content

Incorrect syntax highlighting #82

@DustinCampbell

Description

@DustinCampbell

From @CoenraadS on August 17, 2017 10:5

Environment data

dotnet --info output:

.NET Command Line Tools (1.1.0)

Product Information:
 Version:            1.1.0
 Commit SHA-1 hash:  d6f4336106

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.15063
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\1.1.0

VS Code version: 1.15.1
C# Extension version: 1.12.1

Steps to reproduce

Have a unity .cs file with the following contents:

 void Start()
    {
        Vector2 point1 = new Vector2(1, 1);
	int z = 1;
        var newPoint = new Vector2(point1.x * z, 0);
    }

2017-08-17 12_02_28-clipboard

Expected behavior

point1.x should be a light blue color

Actual behavior

point1.x has the same color as 'Vector2'

Copied from original issue: dotnet/vscode-csharp#1721

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions