microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
98.27k stars 12.21k forks source link

Correct Regular Expressions Behavior Related to Annex B #58320

Open graphemecluster opened 2 weeks ago

graphemecluster commented 2 weeks ago

Follow-up of #58295 This fixes issues like the '}' expected cases given at https://github.com/microsoft/TypeScript/issues/58275#issuecomment-2068174045.

typescript-bot commented 2 weeks ago

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

graphemecluster commented 1 week ago

Again, FWIW this might be of interest to @rbuckton and @jakebailey.

jakebailey commented 1 hour ago

This will probably need to be rebased.

rbuckton commented 1 hour ago

@jakebailey is correct. #58339 also made some changes to this code, so a rebase or merge from main is necessary to resolve conflicts.