Reverted change

This commit is contained in:
Luca 2025-11-14 15:59:29 +01:00
parent 36b3e66951
commit 716efdc85d

View file

@ -10245,10 +10245,9 @@ impl<'a> Parser<'a> {
// Check if there's a comma, indicating multiple strings (e.g., AS 'obj_file', 'link_symbol')
// This is used for C language functions: AS 'MODULE_PATHNAME', 'link_symbol'
if self.consume_token(&Token::Comma) {
Ok(Expr::Tuple(vec![
first_expr,
self.parse_comma_separated(parse_string_expr)?
]))
let mut exprs = vec![first_expr];
exprs.extend(self.parse_comma_separated(parse_string_expr)?);
Ok(Expr::Tuple(exprs))
} else {
Ok(first_expr)
}