Skip to content

Commit

Permalink
trailing commas: Don't require whitespace after them
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Jun 1, 2024
1 parent 7b1726f commit 0fc8e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse/diag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn wrapws_strings<'a>(
}

fn opt_comma_tag<'a>(t: &'a str) -> impl FnMut(&'a str) -> IResult<&'a str, &'a str> {
alt((tag(t), map(tuple((tag(","), ws, tag(t))), |(_, (), f)| f)))
alt((tag(t), map(tuple((tag(","), many0_count(ws::<()>), tag(t))), |(_, _, f)| f)))
}

/// Recognizes one or more binary numerical characters: 0, 1
Expand Down

0 comments on commit 0fc8e7b

Please sign in to comment.