From c95c0007c27b9d0bd720e6c777b47b77f10efe87 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Mon, 31 Aug 2020 11:52:18 -1000 Subject: [PATCH] Bump keyword maximum length --- src/compiler/scanner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 04bc4cf7fedef..5f5248e1073f3 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -1512,9 +1512,9 @@ namespace ts { } function getIdentifierToken(): SyntaxKind.Identifier | KeywordSyntaxKind { - // Reserved words are between 2 and 11 characters long and start with a lowercase letter + // Reserved words are between 2 and 12 characters long and start with a lowercase letter const len = tokenValue.length; - if (len >= 2 && len <= 11) { + if (len >= 2 && len <= 12) { const ch = tokenValue.charCodeAt(0); if (ch >= CharacterCodes.a && ch <= CharacterCodes.z) { const keyword = textToKeyword.get(tokenValue);