Parse assignment patterns with underscores

This commit is contained in:
Ayaz Hafiz 2022-07-22 15:58:27 -04:00
parent 3e82d30e89
commit fbd70c4031
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 240 additions and 1 deletions

View file

@ -1519,7 +1519,7 @@ fn parse_expr_end<'a>(
) -> ParseResult<'a, Expr<'a>, EExpr<'a>> {
let parser = skip_first!(
crate::blankspace::check_indent(min_indent, EExpr::IndentEnd),
move |a, s| parse_loc_term(min_indent, options, a, s)
move |a, s| parse_loc_term_or_underscore(min_indent, options, a, s)
);
match parser.parse(arena, state.clone()) {