Skip to content

Primitive Type <cast> Syntax Highlighting Issue #496

@TeamworkGuy2

Description

@TeamworkGuy2

TS and JS Grammar Extension version: 0.0.22 ??? (installed extension in VS Code today)
Environment: VS Code 1.13, Windows 7

Code

var x = 0;
var y = 1;
var z = <number>x + <number>y;

Notice how the 2nd <number> and <string> are not syntax colored blue, but the <Date> is correct.
ts-syntax-highlighting-issue

Expected behavior:
both <number> and <string> instances should by syntax highlighted blue
Actual behavior:
only the first <number> and <string> are syntax highlighted blue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions