Skip to content

Commit 8111503

Browse files
authored
Update unicode identifier start/part with more recent unicode version (microsoft#58521)
1 parent 0b37062 commit 8111503

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

scripts/regenerate-unicode-identifier-parts.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ for (let i = 0; i < MAX_UNICODE_CODEPOINT; i++) {
2020
}
2121

2222
console.log(`/**
23-
* Generated by scripts/regenerate-unicode-identifier-parts.js on node ${process.version} with unicode ${process.versions.unicode}
24-
* based on http://www.unicode.org/reports/tr31/ and https://www.ecma-international.org/ecma-262/6.0/#sec-names-and-keywords
25-
* unicodeESNextIdentifierStart corresponds to the ID_Start and Other_ID_Start property, and
26-
* unicodeESNextIdentifierPart corresponds to ID_Continue, Other_ID_Continue, plus ID_Start and Other_ID_Start
27-
*/`);
23+
* Generated by scripts/regenerate-unicode-identifier-parts.mjs on node ${process.version} with unicode ${process.versions.unicode}
24+
* based on http://www.unicode.org/reports/tr31/ and https://www.ecma-international.org/ecma-262/6.0/#sec-names-and-keywords
25+
* unicodeESNextIdentifierStart corresponds to the ID_Start and Other_ID_Start property, and
26+
* unicodeESNextIdentifierPart corresponds to ID_Continue, Other_ID_Continue, plus ID_Start and Other_ID_Start
27+
*/`);
28+
console.log(`// dprint-ignore`);
2829
console.log(`const unicodeESNextIdentifierStart = [${starts.join(", ")}];`);
30+
console.log(`// dprint-ignore`);
2931
console.log(`const unicodeESNextIdentifierPart = [${parts.join(", ")}];`);

0 commit comments

Comments
 (0)