summaryrefslogtreecommitdiff
path: root/compiler/lexer/lexer.c
diff options
context:
space:
mode:
authorQuinn Stephens <quinn@osmora.org>2024-11-03 16:53:16 -0500
committerQuinn Stephens <quinn@osmora.org>2024-11-03 16:53:16 -0500
commit71b10c1c765196a771ce05216395d6b78892a735 (patch)
treeea88735919caebb6500d0b3ae78820c083048e25 /compiler/lexer/lexer.c
parent388025e5a7d2d7997926c6a9af8767ca9ccb12bf (diff)
[compiler] More small refactoring
Signed-off-by: Quinn Stephens <quinn@osmora.org>
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] == '=') {