lang: fix matrix recovery

This commit is contained in:
Schrottkatze 2024-04-24 19:55:25 +02:00
parent e62b50a51a
commit 9510d9254c
No known key found for this signature in database

View file

@ -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]));