From f72f62768100e3c1bd8eb753f0025bc8e1dc0369 Mon Sep 17 00:00:00 2001 From: "S. Gilles" Date: Thu, 16 Aug 2018 14:45:48 +0000 Subject: [PATCH] \- is a control sequence too --- llf.lua | 2 +- tests/27.input.tex | 3 +++ tests/27.output.tex | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tests/27.input.tex create mode 100644 tests/27.output.tex diff --git a/llf.lua b/llf.lua index 1797077..f4c9d5c 100755 --- a/llf.lua +++ b/llf.lua @@ -87,7 +87,7 @@ texish = P{ Cg((P(1) - #P"%}noformat\n")^0, "content") * Cg("%}noformat", "endbit") * #P"\n") + constructed_verbatims), - specialcontrol = Ct(P"\\" * Cg(S"\\ \n%,:\"\'{}$^_`~#&[]()!", "name")), + specialcontrol = Ct(P"\\" * Cg(S"\\ \n%,:\"\'-{}$^_`~#&[]()!", "name")), word = S"[]" + (1 - S(" \t\n\v\\%{}[]"))^1, wordnb = (1 - S(" \t\n\v\\%{}[]"))^1, subbody = Ct(Cg(P"{", "l") * Cg(V"body", "body") * Cg(P"}", "r")) + diff --git a/tests/27.input.tex b/tests/27.input.tex new file mode 100644 index 0000000..72e919f --- /dev/null +++ b/tests/27.input.tex @@ -0,0 +1,3 @@ +\documentclass{article} + +\begin{document} This is in case you want to ex\-plic\-it\-ly pro\-vide hy\-phen\-ation hi\-nts to T\-e\-X. \end{document} diff --git a/tests/27.output.tex b/tests/27.output.tex new file mode 100644 index 0000000..d5f4040 --- /dev/null +++ b/tests/27.output.tex @@ -0,0 +1,6 @@ +\documentclass{article} + +\begin{document} + This is in case you want to ex\-plic\-it\-ly pro\-vide hy\-phen\-ation + hi\-nts to T\-e\-X. +\end{document} -- 2.11.4.GIT