Make let a contextual keyword

This commit is contained in:
Daniel Tschinder
2019-01-21 19:46:40 -08:00
parent 65febdd13a
commit 178f2d7949
24 changed files with 636 additions and 42 deletions

View File

@@ -57,7 +57,6 @@ const keywords = new Set([
"new",
"in",
"this",
"let",
"const",
"class",
"extends",
@@ -71,6 +70,8 @@ export function isKeyword(word: string): boolean {
return keywords.has(word);
}
export const keywordRelationalOperator = /^in(stanceof)?$/;
// ## Character categories
// Big ugly regular expressions that matches characters in the