Skip to content

Commit

Permalink
parser: fix type-enum item parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jul 24, 2024
1 parent 736996a commit 0ea2a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/jule/parser/parser.jule
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0ea2a7d

Please sign in to comment.