fix(parser): parse empty calls

This commit is contained in:
2026-06-29 13:59:03 +02:00
parent 2eeede9826
commit 11be47fce3

View File

@@ -377,7 +377,7 @@ class MidasParser(Parser):
pos_args: list[Expr] = []
kw_args: dict[str, Expr] = {}
keywords: bool = False
while not self.match(TokenType.RIGHT_PAREN):
while not self.check(TokenType.RIGHT_PAREN):
if self.check_identifier() and self.check_next(TokenType.EQUAL):
keywords = True
keyword: Token = self.advance()