summaryrefslogtreecommitdiffhomepage
path: root/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lexer.c b/lexer.c
index 25a5cf4..cc35d66 100644
--- a/lexer.c
+++ b/lexer.c
@@ -141,10 +141,13 @@ static const struct keyword reserved_words[] = {
{ TK_ENDWHILE, "endwhile", 8, { 0 } },
{ TK_FUNC, "function", 8, { 0 } },
{ TK_DEFAULT, "default", 7, { 0 } },
+ { TK_DELETE, "delete", 6, { 0 } },
{ TK_RETURN, "return", 6, { 0 } },
{ TK_ENDFOR, "endfor", 6, { 0 } },
{ TK_SWITCH, "switch", 6, { 0 } },
+#ifndef NO_LEGACY
{ TK_LOCAL, "local", 5, { 0 } },
+#endif
{ TK_ENDIF, "endif", 5, { 0 } },
{ TK_WHILE, "while", 5, { 0 } },
{ TK_BREAK, "break", 5, { 0 } },