summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2008-11-21 19:25:26 +0000
committerSimon Tatham <anakin@pobox.com>2008-11-21 19:25:26 +0000
commit56b96573956a4035b9db0d73a8a07f2ed1526004 (patch)
treed7c0b01ce9d9ce72ff4bcd5e35e12352f45bb964
parentf363ea888dd2a45d7996dbc3f267c326926ac7a5 (diff)
downloadhalibut-56b96573956a4035b9db0d73a8a07f2ed1526004.zip
halibut-56b96573956a4035b9db0d73a8a07f2ed1526004.tar.gz
halibut-56b96573956a4035b9db0d73a8a07f2ed1526004.tar.bz2
halibut-56b96573956a4035b9db0d73a8a07f2ed1526004.tar.xz
Correct mishandling of paragraphs beginning with "\#{".
(Embarrassingly, this was showing up in inputs/test.but itself.) [originally from svn r8312]
-rw-r--r--input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/input.c b/input.c
index 337517d..f43604f 100644
--- 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);