From fd09d257ff97f2921b9d81a2bf9ff3e5a2e699d3 Mon Sep 17 00:00:00 2001 From: "S. Gilles" Date: Fri, 21 Sep 2018 08:44:38 -0400 Subject: [PATCH] And \; is a control sequence as well. --- llf.lua | 2 +- tests/28.input.tex | 6 ++++++ tests/28.output.tex | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tests/28.input.tex create mode 100644 tests/28.output.tex diff --git a/llf.lua b/llf.lua index f4c9d5c..15cd99c 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/28.input.tex b/tests/28.input.tex new file mode 100644 index 0000000..61badd8 --- /dev/null +++ b/tests/28.input.tex @@ -0,0 +1,6 @@ +\documentclass{revtex4-1} + +\begin{document} +$$S(x)_2 =\;$$ +\end{document} + diff --git a/tests/28.output.tex b/tests/28.output.tex new file mode 100644 index 0000000..79cd60b --- /dev/null +++ b/tests/28.output.tex @@ -0,0 +1,5 @@ +\documentclass{revtex4-1} + +\begin{document} + $$S(x)_2 =\;$$ +\end{document} -- 2.11.4.GIT