summaryrefslogtreecommitdiffstatshomepage
path: root/mdocml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-03 18:38:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-03 18:38:39 +0000
commit50ffcd72be49e8f794384aa7bc4041065cf94d13 (patch)
tree5fc66a56d4f56abbcaa6739847a82f16915615bf /mdocml.c
parent870e7027cc4f493228db816427256127402b6b19 (diff)
downloadmandoc-50ffcd72be49e8f794384aa7bc4041065cf94d13.tar.gz
mandoc-50ffcd72be49e8f794384aa7bc4041065cf94d13.tar.zst
mandoc-50ffcd72be49e8f794384aa7bc4041065cf94d13.zip
*** empty log message ***
Diffstat (limited to 'mdocml.c')
-rw-r--r--mdocml.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/mdocml.c b/mdocml.c
index 57932a93..d2fe92c6 100644
--- a/mdocml.c
+++ b/mdocml.c
@@ -1,4 +1,4 @@
-/* $Id: mdocml.c,v 1.31 2009/01/01 20:40:16 kristaps Exp $ */
+/* $Id: mdocml.c,v 1.32 2009/01/03 18:38:39 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -398,8 +398,17 @@ msg_err(void *arg, int tok, int col, enum mdoc_err type)
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();
@@ -489,6 +498,9 @@ msg_warn(void *arg, int tok, int col, enum mdoc_warn type)
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;