This commit is contained in:
gluax 2022-03-14 08:12:29 -07:00
parent ef8d0415e7
commit 8e0a59dc5d

View File

@ -296,7 +296,8 @@ impl ParserContext<'_> {
// Parse variable names. // Parse variable names.
let variable_names = if self.peek_is_left_par() { let variable_names = if self.peek_is_left_par() {
let vars = self.parse_paren_comma_list(|p| p.parse_variable_name(&declare).map(Some)) let vars = self
.parse_paren_comma_list(|p| p.parse_variable_name(&declare).map(Some))
.map(|(vars, ..)| vars)?; .map(|(vars, ..)| vars)?;
if vars.len() == 1 { if vars.len() == 1 {