Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5263b1e

Browse files
Merge pull request #1401 from Workiva/updateReservedKeywords
Updated the list of reserved keywords
2 parents 09f0b7c + c12c437 commit 5263b1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/compiler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ var (
2626

2727
func init() {
2828
keywords := []string{
29-
"abstract", "arguments", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue",
30-
"debugger", "default", "delete", "do", "double", "else", "enum", "eval", "export", "extends", "false",
29+
"abstract", "arguments", "await", "async", "boolean", "break", "byte", "case", "catch", "char", "class", "const",
30+
"continue", "debugger", "default", "delete", "do", "double", "else", "enum", "eval", "export", "extends", "false",
3131
"final", "finally", "float", "for", "function", "goto", "if", "implements", "import", "in", "instanceof",
3232
"int", "interface", "let", "long", "native", "new", "null", "package", "private", "protected", "public",
3333
"return", "short", "static", "super", "switch", "synchronized", "this", "throw", "throws", "transient",
34-
"true", "try", "typeof", "undefined", "var", "void", "volatile", "while", "with", "yield",
34+
"true", "try", "typeof", "undefined", "using", "var", "void", "volatile", "while", "with", "yield",
3535
}
3636
for _, keyword := range keywords {
3737
reservedKeywords[keyword] = true

0 commit comments

Comments
 (0)