Skip to content

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

Merged
weswigham merged 1 commit into
microsoft:masterfrom
weswigham:extended-escapes-in-identifiers
Aug 6, 2019
Merged

Support extended unicode escapes in identifiers, per es6 spec#32725
weswigham merged 1 commit into
microsoft:masterfrom
weswigham:extended-escapes-in-identifiers

Conversation

@weswigham
Copy link
Copy Markdown
Member

Fixes #5291

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

Comment thread src/compiler/scanner.ts
}


function peekExtendedUnicodeEscape(): number {
Copy link
Copy Markdown
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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support ES6 UnicodeEscapeSequence in Identifiers

2 participants