Skip to content

Commit c95c000

Browse files
committed
Bump keyword maximum length
1 parent 95ac3d4 commit c95c000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/scanner.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1512,9 +1512,9 @@ namespace ts {
15121512
}
15131513

15141514
function getIdentifierToken(): SyntaxKind.Identifier | KeywordSyntaxKind {
1515-
// Reserved words are between 2 and 11 characters long and start with a lowercase letter
1515+
// Reserved words are between 2 and 12 characters long and start with a lowercase letter
15161516
const len = tokenValue.length;
1517-
if (len >= 2 && len <= 11) {
1517+
if (len >= 2 && len <= 12) {
15181518
const ch = tokenValue.charCodeAt(0);
15191519
if (ch >= CharacterCodes.a && ch <= CharacterCodes.z) {
15201520
const keyword = textToKeyword.get(tokenValue);

0 commit comments

Comments
 (0)