summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/lang
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-12-12 22:29:06 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-12-12 22:29:06 +0000
commitcf4c1d3508ce7ae05327c5bb55d6654260f5efaf (patch)
tree04de7089dbfc6cd149b7a7ac21f6d2b79947c3ce /Build/source/texk/web2c/luatexdir/lang
parent5c5f559b92567cd53a5d7e1b943bdef461879d96 (diff)
luatex: sync with the upstream
git-svn-id: svn://tug.org/texlive/trunk@57118 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lang')
-rw-r--r--Build/source/texk/web2c/luatexdir/lang/texlang.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lang/texlang.c b/Build/source/texk/web2c/luatexdir/lang/texlang.c
index 48a242fa09b..453d51404c6 100644
--- a/Build/source/texk/web2c/luatexdir/lang/texlang.c
+++ b/Build/source/texk/web2c/luatexdir/lang/texlang.c
@@ -1023,6 +1023,12 @@ void hnj_hyphenation(halfword head, halfword tail)
break;
}
wordlen++;
+ if (wordlen >= MAX_WORD_LEN) {
+ while (r && type(r) == glyph_node) {
+ r = vlink(r);
+ }
+ goto PICKUP;
+ }
if (lchar <= 32) {
if (lchar == 32) {
lchar = 0 ;
@@ -1140,6 +1146,7 @@ void hnj_hyphenation(halfword head, halfword tail)
}
}
}
+PICKUP:
expstart = null ;
explicit_hyphen = false;
wordlen = 0;