summaryrefslogtreecommitdiffhomepage
path: root/lexer.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-01-18 15:28:00 +0100
committerJo-Philipp Wich <jo@mein.io>2022-01-18 15:28:00 +0100
commit03b6a8efc1834a4114f0d11e1a7cecff3242b305 (patch)
treef3b620b35ca765f32af4dd10aa29794be805c53a /lexer.c
parent61d0a34fb7501a1f8aa43cfa1063c8a7ca1fb1d2 (diff)
syntax: drop legacy syntax support
Drop support for the `local` keyword and `delete` function calls. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lexer.c b/lexer.c
index 6c665c8..b41e680 100644
--- a/lexer.c
+++ b/lexer.c
@@ -144,9 +144,6 @@ static const struct keyword reserved_words[] = {
{ TK_RETURN, "return", 6 },
{ TK_ENDFOR, "endfor", 6 },
{ TK_SWITCH, "switch", 6 },
-#ifndef NO_LEGACY
- { TK_LOCAL, "local", 5 },
-#endif
{ TK_ENDIF, "endif", 5 },
{ TK_WHILE, "while", 5 },
{ TK_BREAK, "break", 5 },