[project @ 1998-10-07 16:33:23 by simonm]
authorsimonm <unknown>
Wed, 7 Oct 1998 16:33:23 +0000 (16:33 +0000)
committersimonm <unknown>
Wed, 7 Oct 1998 16:33:23 +0000 (16:33 +0000)
mangle percent symbols properly.

glafp-utils/sgmlverb/sgmlverb.lex

index d6ce058..944de79 100644 (file)
@@ -28,6 +28,7 @@ miranda                       ([0-9]+(\-([0-9]+)?)?)?>
                        top = 0;
 <NORM>@@               { printf ("@"); }
 <NORM>@                        { printf ("<tt>"); PUSH NORM;  BEGIN VERB; }
+<NORM>\\%               { printf ("&percnt;"); }
 <NORM>{comment}         { }
 <VERB>@                        { printf ("</tt>");  POP; }
 <VERB>@@               { printf ("@"); }