summaryrefslogtreecommitdiffhomepage
path: root/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer.c b/lexer.c
index ad7ac46..810e2eb 100644
--- a/lexer.c
+++ b/lexer.c
@@ -75,7 +75,6 @@ static const struct token tokens[] = {
{ T_ASSUB, "-=", 2 },
{ T_DEC, "--", 2 },
{ T_INC, "++", 2 },
- { T_IF, "if", 2 },
{ T_EQ, "==", 2 },
{ T_NE, "!=", 2 },
{ T_LE, "<=", 2 },
@@ -146,6 +145,7 @@ static const struct token reserved_words[] = {
{ T_NUMBER, "NaN", 3, parse_number },
{ T_TRY, "try", 3 },
{ T_FOR, "for", 3 },
+ { T_IF, "if", 2 },
{ T_IN, "in", 2 },
};