-/* $Id: mdocml.c,v 1.31 2009/01/01 20:40:16 kristaps Exp $ */
+/* $Id: mdocml.c,v 1.34 2009/01/05 16:11:14 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
p = mdoc_macronames[n->data.head.tok];
t = "block-head";
break;
+ case (MDOC_TAIL):
+ p = mdoc_macronames[n->data.tail.tok];
+ t = "block-tail";
+ break;
case (MDOC_ELEM):
- assert(NULL == n->child);
p = mdoc_macronames[n->data.elem.tok];
t = "element";
argv = n->data.elem.argv;
case (ERR_SYNTAX_ARGMANY):
lit = "syntax: too many values for macro argument";
break;
- case (ERR_CHILD_HEAD):
- lit = "scope context expects block-header child";
+ case (ERR_SYNTAX_CHILDHEAD):
+ lit = "syntax: expected only block-header section";
+ break;
+ case (ERR_SYNTAX_CHILDBODY):
+ lit = "syntax: expected only a block-body section";
+ break;
+ case (ERR_SYNTAX_EMPTYHEAD):
+ lit = "syntax: block-header section may not be empty";
+ break;
+ case (ERR_SYNTAX_EMPTYBODY):
+ lit = "syntax: block-body section may not be empty";
break;
default:
abort();
case (WARN_SYNTAX_ARGLIKE):
lit = "syntax: argument-like value";
break;
+ case (WARN_SYNTAX_EMPTYBODY):
+ lit = "syntax: empty block-body section";
+ break;
case (WARN_SEC_OO):
lit = "section is out of conventional order";
break;