[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] checkeq functionality available?
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] checkeq functionality available? |
Date: |
Wed, 05 Dec 2001 18:07:20 +0000 |
Hi Robert,
> The text below has a missing delimiter at line 32. The result of
> processin with geqn is
>
> groff -ms -e junk.trf > j
> geqn:junk.trf:73:fatal error: end of file before `$'
Here's a patch that improves one error message.
% cat j
.EQ
delim $@
.EN
This is a test.
$ alpha @ is listed here.
This is a test.
$ alpha is listed here.
This is a test.
% src/preproc/eqn/eqn j >/dev/null
eqn:j:9:fatal error: unterminated `$' at line 7, looking for `@'
Cheers,
Ralph.
--- src/preproc/eqn/main.cc.orig Fri Apr 20 14:35:00 2001
+++ src/preproc/eqn/main.cc Wed Dec 5 17:16:46 2001
@@ -190,7 +190,8 @@
}
str += ptr;
if (!read_line(fp, &linebuf))
- fatal("end of file before `%1'", end_delim);
+ fatal("unterminated `%1' at line %2, looking for `%3'",
+ start_delim, start_lineno, end_delim);
linebuf += '\0';
ptr = &linebuf[0];
}