From 3ea5db22e2af7b4446528de78b4c51bc3cd0559b Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 21 Oct 1999 13:34:34 +0000 Subject: We were failing to diagnose bad command at paragraph start [originally from svn r242] --- input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'input.c') 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)) -- cgit v1.1