summaryrefslogtreecommitdiff
path: root/compiler/lexer/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/lexer/lexer.c')
-rw-r--r--compiler/lexer/lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/lexer/lexer.c b/compiler/lexer/lexer.c
index 06f7e89..2eaa067 100644
--- a/compiler/lexer/lexer.c
+++ b/compiler/lexer/lexer.c
@@ -103,7 +103,7 @@ lex_oper(struct lexer *ctx, struct token *tok)
if (ctx->pos[1] == '>') {
tok->kind = TK_ARROW;
tok->len = 2;
- } if (ctx->pos[1] == '-') {
+ } else if (ctx->pos[1] == '-') {
tok->kind = TK_MINUS_MINUS;
tok->len = 2;
} else if (ctx->pos[1] == '=') {