Fixed bug where infix wouldn't rewind when encountering a comma, causing the rest of a syscall parse in an assignment expression to fail

This commit is contained in:
2025-12-10 00:09:16 -07:00
parent 0fde11a2bf
commit 9c260ef2d5
7 changed files with 14 additions and 7 deletions

View File

@@ -1059,7 +1059,9 @@ impl<'a> Parser<'a> {
if token_matches!(
temp_token,
TokenType::Symbol(Symbol::Semicolon) | TokenType::Symbol(Symbol::RParen)
TokenType::Symbol(Symbol::Semicolon)
| TokenType::Symbol(Symbol::RParen)
| TokenType::Symbol(Symbol::Comma)
) {
self.tokenizer.seek(SeekFrom::Current(-1))?;
}