lang: fix matrix recovery

This commit is contained in:
Schrottkatze 2024-04-24 19:55:25 +02:00
parent e62b50a51a
commit 9510d9254c
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc

View file

@ -52,8 +52,10 @@ fn matrix_body(p: &mut Parser) {
}
};
} else if p.at(R_BRACK) {
mat_item.abandon(p);
going = false;
} else {
mat_item.abandon(p);
let err = p.start("err");
p.do_bump();
err.complete_err(p, SyntaxError::Expected(vec![EXPR, R_BRACK]));