summaryrefslogtreecommitdiffhomepage
path: root/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lexer.c b/lexer.c
index 84af45d..cc35d66 100644
--- a/lexer.c
+++ b/lexer.c
@@ -145,7 +145,9 @@ static const struct keyword reserved_words[] = {
{ 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 } },