From 7dd104a3fdcd6f0094ec2e0f8c6a18564949eb49 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 5 Aug 2019 18:08:08 +0100 Subject: [PATCH] doc/sod.sty: Debug `@;'. OMG. * Don't eat the `\\' and then hope to find it. * Actually chew through the `;' characters rather than piling them up. * Don't eat spaces while looking for more `;'s. --- doc/sod.sty | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/sod.sty b/doc/sod.sty index e88f2d5..45d623e 100644 --- a/doc/sod.sty +++ b/doc/sod.sty @@ -154,9 +154,9 @@ %% Comment setting. \def\comment#1{\mbox{\normalfont\itshape\/#1\/}} \atdef /*#1*/{/*\comment{#1}*/} -\def\@semis{\@ifnextchar;{;\@semis}\@semicomment} +\def\@semis;{\@ifnextchar@preserve;{;\@semis}\@semicomment} \def\@semicomment#1\\{\comment{#1}\\} -\atdef ;#1\\{;\@semis} +\atdef ;{;\@semis;} %% Environment for setting programs. Newlines are explicit, because %% otherwise I need comments in weird places to make the vertical spacing -- 2.11.0