summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/tex/texmath.c
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2021-04-19 14:58:13 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2021-04-19 14:58:13 +0000
commit579e5d528ba0da1687dfa6e2aaf0d288d9a281d8 (patch)
tree819a7f334c14b4edf48e8d5f9a32f2a3f3d4075c /Build/source/texk/web2c/luatexdir/tex/texmath.c
parentc55fff18e2c535a3058c3b0fe3a59ad46c99aeac (diff)
Sync with upstream luatex. Accept par in math after halign and eqn when in supress mode; a patch for linkarea in rtl context.
git-svn-id: svn://tug.org/texlive/trunk@58916 c570f23f-e606-0410-a88d-b1316a301751
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();
}