X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/7cf305b7b9110585d31cdaad8de89411c688a465..7136a6c7f094fa423c48ec319748c4fd7e1fa645:/error.c diff --git a/error.c b/error.c index 6d8dd13..e9c681a 100644 --- a/error.c +++ b/error.c @@ -119,6 +119,11 @@ static void do_error(int code, va_list ap) { sprintf(error, "unclosed braces at end of paragraph"); flags = FILEPOS; break; + case err_missingrbrace2: + fpos = *va_arg(ap, filepos *); + sprintf(error, "unclosed braces at end of input file"); + flags = FILEPOS; + break; case err_nestedstyles: fpos = *va_arg(ap, filepos *); sprintf(error, "unable to nest text styles"); @@ -184,6 +189,16 @@ static void do_error(int code, va_list ap) { sprintf(error + strlen(error), "%s:%d", fpos2.filename, fpos2.line); flags = FILEPOS; break; + case err_misplacedlcont: + fpos = *va_arg(ap, filepos *); + sprintf(error, "\\lcont is only expected after a list item"); + flags = FILEPOS; + break; + case err_sectmarkerinlcont: + fpos = *va_arg(ap, filepos *); + sprintf(error, "section headings are not supported within \\lcont"); + flags = FILEPOS; + break; case err_whatever: sp = va_arg(ap, char *); vsprintf(error, sp, ap);