Skip to content

Commit 716efdc

Browse files
Reverted change
1 parent 36b3e66 commit 716efdc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/parser/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10245,10 +10245,9 @@ impl<'a> Parser<'a> {
1024510245
// Check if there's a comma, indicating multiple strings (e.g., AS 'obj_file', 'link_symbol')
1024610246
// This is used for C language functions: AS 'MODULE_PATHNAME', 'link_symbol'
1024710247
if self.consume_token(&Token::Comma) {
10248-
Ok(Expr::Tuple(vec![
10249-
first_expr,
10250-
self.parse_comma_separated(parse_string_expr)?
10251-
]))
10248+
let mut exprs = vec![first_expr];
10249+
exprs.extend(self.parse_comma_separated(parse_string_expr)?);
10250+
Ok(Expr::Tuple(exprs))
1025210251
} else {
1025310252
Ok(first_expr)
1025410253
}

0 commit comments

Comments
 (0)