From 981036919bbaa1d1ecac80cc86fcb74a4b15ec36 Mon Sep 17 00:00:00 2001 From: "S. Gilles" Date: Sat, 22 Sep 2018 08:12:04 -0400 Subject: [PATCH] \/ is a control sequence, too --- llf.lua | 2 +- tests/26.input.tex | 1 + tests/26.output.tex | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/llf.lua b/llf.lua index 7440284..7c52909 100755 --- a/llf.lua +++ b/llf.lua @@ -89,7 +89,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/26.input.tex b/tests/26.input.tex index 2134857..ee0cba9 100644 --- a/tests/26.input.tex +++ b/tests/26.input.tex @@ -10,6 +10,7 @@ This is just to show that the ugly control sequences are recognized. \, \: \" +\/ \' \{ \} diff --git a/tests/26.output.tex b/tests/26.output.tex index 2fa220e..ccdeb12 100644 --- a/tests/26.output.tex +++ b/tests/26.output.tex @@ -3,7 +3,7 @@ \begin{document} This is just to show that the ugly control sequences are recognized. \\ \ \ - \% \, \: \" \' \{ \} \$ \^ \| \; \_ ad\`{e}les \~ \# \& \! and here's - some extra bogus text to make sure that the line detection didn't get - thrown out of whack by that backslash+newline up there. + \% \, \: \" \/ \' \{ \} \$ \^ \| \; \_ ad\`{e}les \~ \# \& \! and + here's some extra bogus text to make sure that the line detection + didn't get thrown out of whack by that backslash+newline up there. \end{document} -- 2.11.4.GIT