Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gcnew opened this issue Jun 30, 2016 · 1 comment
Closed

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

gcnew opened this issue Jun 30, 2016 · 1 comment

Comments

@gcnew
Copy link
Contributor

gcnew commented Jun 30, 2016

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.

@gcnew gcnew changed the title Syntax coloring errors if method return type ends with a digit Syntax coloring fails if method return type ends with a digit Jun 30, 2016
@gcnew gcnew changed the title Syntax coloring fails if method return type ends with a digit Syntax coloring fails if the return type of a method ends with a digit Jun 30, 2016
@gcnew gcnew changed the title Syntax coloring fails if the return type of a method ends with a digit Syntax coloring fails if the method return type ends with a digit Jun 30, 2016
@gcnew
Copy link
Contributor Author

gcnew commented Jun 30, 2016

Closing this issue as it is part of the tooling and not the core language.

Superseded by: microsoft/TypeScript-TmLanguage#199

@gcnew gcnew closed this as completed Jun 30, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant