From 0ea2a7d62cde5f41c14519dd5f4d747e89d35134 Mon Sep 17 00:00:00 2001 From: mertcandav Date: Wed, 24 Jul 2024 17:00:08 +0300 Subject: [PATCH] parser: fix type-enum item parsing --- std/jule/parser/parser.jule | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/jule/parser/parser.jule b/std/jule/parser/parser.jule index 4221ca33c..872411f09 100644 --- a/std/jule/parser/parser.jule +++ b/std/jule/parser/parser.jule @@ -1214,9 +1214,9 @@ impl parser { let mut item = new(TypeEnumItemDecl) item.Token = t if item.Token.Id == TokenId.Ident && len(tokens)-i > 2 { - item.Ident = item.Token.Kind t = tokens[i+1] if t.Id == TokenId.Colon { + item.Ident = item.Token.Kind i += 2 if i >= len(tokens) || tokens[i].Id == TokenId.Comma { self.pushErr(t, LogMsg.MissingType)