summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>1999-10-21 13:34:34 +0000
committerSimon Tatham <anakin@pobox.com>1999-10-21 13:34:34 +0000
commit3ea5db22e2af7b4446528de78b4c51bc3cd0559b (patch)
tree0640081adce2a5180b75549c5733c36595b3a8eb /input.c
parent5a9505f48aeb252d1a316b3cecc0b1da9d510085 (diff)
downloadhalibut-3ea5db22e2af7b4446528de78b4c51bc3cd0559b.zip
halibut-3ea5db22e2af7b4446528de78b4c51bc3cd0559b.tar.gz
halibut-3ea5db22e2af7b4446528de78b4c51bc3cd0559b.tar.bz2
halibut-3ea5db22e2af7b4446528de78b4c51bc3cd0559b.tar.xz
We were failing to diagnose bad command at paragraph start
[originally from svn r242]
Diffstat (limited to 'input.c')
-rw-r--r--input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/input.c b/input.c
index 1f40912..32eca3b 100644
--- a/input.c
+++ b/input.c
@@ -505,7 +505,8 @@ static void read_file(paragraph ***ret, input *in, index *idx) {
par.fpos = t.pos;
switch (t.cmd) {
default:
- needkw = -1;
+ error(err_badparatype, t.text, &t.pos);
+ needkw = 4;
break;
case c__comment:
if (isbrace(in))