summaryrefslogtreecommitdiffhomepage
path: root/lexer.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-18 15:07:43 +0200
committerGitHub <noreply@github.com>2021-05-18 15:07:43 +0200
commit2c2e603204be7ec96cab7504e3ee6951412ad4bc (patch)
tree15db63a3f8c7d74d9013699a067d5c984f820415 /lexer.c
parent29591422d602ec6b5a3808c3dead91cfbcdbbcf0 (diff)
parented32c42eefbc4560408d53445c603767469c85bd (diff)
Merge pull request #12 from jow-/various-additions
Various additions
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 } },