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

Allow method return types to end with a digit #199

Closed
wants to merge 2 commits into from

Conversation

gcnew
Copy link

@gcnew gcnew commented Jun 30, 2016

Syntax coloring fails if method return type ends with a digit. This pull request allows digits to be the last character in type-annotation.end regular expression.

Fixes microsoft/TypeScript#9444 and should be in line with the to-be-added numeric literal types microsoft/TypeScript#9407.

@msftclas
Copy link

Hi @gcnew, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@msftclas
Copy link

@gcnew, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, MSBOT;

^^public ^^testMethodReturnType14(): EndsWithDigit1 { ^^return 123 }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a check to scope of 123 and after 123, like --

^^return ^^123 ^^} 

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@mhegazy
Copy link
Contributor

mhegazy commented Sep 16, 2016

Sorry for the delay, this should be fixed now by #257

@mhegazy mhegazy closed this Sep 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants