summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/tex/texmath.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex/texmath.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/texmath.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/texmath.c b/Build/source/texk/web2c/luatexdir/tex/texmath.c
index 4d2bf80ecd6..461a51578fb 100644
--- a/Build/source/texk/web2c/luatexdir/tex/texmath.c
+++ b/Build/source/texk/web2c/luatexdir/tex/texmath.c
@@ -2554,8 +2554,12 @@ void after_math(void)
}
if (mode == -m) {
/*tex end of equation number */
+ RECHECK:
if (cur_cmd == math_shift_cmd) {
check_second_math_shift();
+ } else if (suppress_mathpar_error_par && cur_cmd == par_end_cmd) {
+ get_x_token();
+ goto RECHECK;
} else {
check_display_math_end();
}
@@ -2690,8 +2694,12 @@ void after_math(void)
void finish_display_alignment(pointer p, pointer q, halfword saved_prevdepth)
{
do_assignments();
+ RECHECK:
if (cur_cmd == math_shift_cmd) {
check_second_math_shift();
+ } else if (suppress_mathpar_error_par && cur_cmd == par_end_cmd) {
+ get_x_token();
+ goto RECHECK;
} else {
check_display_math_end();
}