Skip to content

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

Merged
Wesley Wigham (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
Wesley Wigham (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.

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