Correct mishandling of paragraphs beginning with "\#{".
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 21 Nov 2008 19:25:26 +0000 (19:25 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 21 Nov 2008 19:25:26 +0000 (19:25 +0000)
(Embarrassingly, this was showing up in inputs/test.but itself.)

git-svn-id: svn://svn.tartarus.org/sgt/halibut@8312 cda61777-01e9-0310-a592-d414129be87e

input.c

diff --git a/input.c b/input.c
index 337517d..f43604f 100644 (file)
--- a/input.c
+++ b/input.c
@@ -835,8 +835,10 @@ static void read_file(paragraph ***ret, input *in, indexdata *idx,
                needkw = 4;
                break;
              case c__comment:
-               if (isbrace(in))
+               if (isbrace(in)) {
+                   needkw = -1;
                    break;             /* `\#{': isn't a comment para */
+               }
                do {
                    dtor(t), t = get_token(in);
                } while (t.type != tok_eop && t.type != tok_eof);