Add using and local as moonscript keywords

https://moonscript.org/reference/
This commit is contained in:
buckle2000 2019-05-10 19:46:15 -05:00 committed by GitHub
parent e4875a5f56
commit eae77b7f03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1538,13 +1538,13 @@ static bool initMoonscript(tic_mem* tic, const char* code)
static const char* const MoonKeywords [] = static const char* const MoonKeywords [] =
{ {
"false", "true", "nil", "return", "false", "true", "nil", "local", "return",
"break", "continue", "for", "while", "break", "continue", "for", "while",
"if", "else", "elseif", "unless", "switch", "if", "else", "elseif", "unless", "switch",
"when", "and", "or", "in", "do", "when", "and", "or", "in", "do",
"not", "super", "try", "catch", "not", "super", "try", "catch",
"with", "export", "import", "then", "with", "export", "import", "then",
"from", "class", "extends", "new" "from", "class", "extends", "new", "using",
}; };
static const tic_outline_item* getMoonOutline(const char* code, s32* size) static const tic_outline_item* getMoonOutline(const char* code, s32* size)