diff --git a/ssc/parser.cs b/ssc/parser.cs index 8afe094..c997836 100644 --- a/ssc/parser.cs +++ b/ssc/parser.cs @@ -5,7 +5,7 @@ namespace arookas { class sunParser { static string[] keywords = { "import", - "builtin", "function", "var", "const", + "builtin", "function", "var", "const", "local", "if", "while", "do", "for", "return", "break", "continue", "yield", "exit", "lock", "unlock", "int", "float", "typeof", diff --git a/ssc/sunscript.grammar b/ssc/sunscript.grammar index e23a97c..d25dc60 100644 --- a/ssc/sunscript.grammar +++ b/ssc/sunscript.grammar @@ -18,6 +18,7 @@ BUILTIN = "builtin" FUNCTION = "function" VAR = "var" CONST = "const" +LOCAL = "local" IF = "if" ELSE = "else"