forked from katzen-cafe/iowo
lang: fix matrix recovery
This commit is contained in:
parent
e62b50a51a
commit
9510d9254c
1 changed files with 2 additions and 0 deletions
|
@ -52,8 +52,10 @@ fn matrix_body(p: &mut Parser) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} else if p.at(R_BRACK) {
|
} else if p.at(R_BRACK) {
|
||||||
|
mat_item.abandon(p);
|
||||||
going = false;
|
going = false;
|
||||||
} else {
|
} else {
|
||||||
|
mat_item.abandon(p);
|
||||||
let err = p.start("err");
|
let err = p.start("err");
|
||||||
p.do_bump();
|
p.do_bump();
|
||||||
err.complete_err(p, SyntaxError::Expected(vec![EXPR, R_BRACK]));
|
err.complete_err(p, SyntaxError::Expected(vec![EXPR, R_BRACK]));
|
||||||
|
|
Loading…
Reference in a new issue