Skip to content

Support extended unicode escapes in identifiers, per es6 spec #32725

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

Merged

Conversation

weswigham
Copy link
Member

Fixes #5291

Just to fill out the list of unicode-related things we could pretty easily fix

@@ -1341,6 +1341,19 @@ namespace ts {
return -1;
}


function peekExtendedUnicodeEscape(): number {
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that this just peeks to make sure the escape scans and doesn't validate that the resulting number is in the expected range - scanExtendedUnicodeEscape (which is called after both uses to get the real value) does all that.

@weswigham weswigham merged commit d00056f into microsoft:master Aug 6, 2019
@weswigham weswigham deleted the extended-escapes-in-identifiers branch August 6, 2019 21:43
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.

Support ES6 UnicodeEscapeSequence in Identifiers
2 participants