Skip to content

Syntax coloring fails if the method return type ends with a digit #9444

Closed
@gcnew

Description

@gcnew

TypeScript Version: 1.8.0 / nightly (2.0.0-dev.201xxxxx)

Code

type EndsWithDigit1 = number;

class ColoringError {
    wrongSyntaxHighlight(): EndsWithDigit1 {
        return 1234;
    }
}

Behavior:
Everything following EndsWithDigit1 to the end of wrongSyntaxHighlight stops being colored. This behavior is exhibited in Sublime / VS Code / Github with both nightly and 1.8 versions.

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