We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b3e66 commit 716efdcCopy full SHA for 716efdc
src/parser/mod.rs
@@ -10245,10 +10245,9 @@ impl<'a> Parser<'a> {
10245
// Check if there's a comma, indicating multiple strings (e.g., AS 'obj_file', 'link_symbol')
10246
// This is used for C language functions: AS 'MODULE_PATHNAME', 'link_symbol'
10247
if self.consume_token(&Token::Comma) {
10248
- Ok(Expr::Tuple(vec![
10249
- first_expr,
10250
- self.parse_comma_separated(parse_string_expr)?
10251
- ]))
+ let mut exprs = vec![first_expr];
+ exprs.extend(self.parse_comma_separated(parse_string_expr)?);
+ Ok(Expr::Tuple(exprs))
10252
} else {
10253
Ok(first_expr)
10254
}
0 commit comments