summaryrefslogtreecommitdiffstatshomepage
path: root/mdocml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-29 18:08:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-29 18:08:44 +0000
commit21f73097f36c6e37d07c7b3fd1293dbac01c46a2 (patch)
tree87b6d24c30d51aa64973ff06ab0d0a5fbd357dd5 /mdocml.c
parentc5c2d788a24f2391b78ebb06a2ce8f1d2469f217 (diff)
downloadmandoc-21f73097f36c6e37d07c7b3fd1293dbac01c46a2.tar.gz
mandoc-21f73097f36c6e37d07c7b3fd1293dbac01c46a2.tar.zst
mandoc-21f73097f36c6e37d07c7b3fd1293dbac01c46a2.zip
More macros.
Diffstat (limited to 'mdocml.c')
-rw-r--r--mdocml.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/mdocml.c b/mdocml.c
index 610b5a4c..9a2dabe9 100644
--- a/mdocml.c
+++ b/mdocml.c
@@ -1,4 +1,4 @@
-/* $Id: mdocml.c,v 1.27 2008/12/28 23:07:04 kristaps Exp $ */
+/* $Id: mdocml.c,v 1.28 2008/12/29 18:08:44 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -339,6 +339,9 @@ msg_err(void *arg, int tok, int col, enum mdoc_err type)
case (ERR_SYNTAX_ARGFORM):
fmt = "syntax: macro `%s' arguments malformed";
break;
+ case (ERR_SYNTAX_NOPUNCT):
+ fmt = "syntax: macro `%s' doesn't understand punctuation";
+ break;
case (ERR_SYNTAX_ARG):
fmt = "syntax: unknown argument for macro `%s'";
break;
@@ -364,9 +367,15 @@ msg_err(void *arg, int tok, int col, enum mdoc_err type)
case (ERR_SEC_NPROLOGUE):
fmt = "macro `%s' called outside of prologue";
break;
+ case (ERR_ARGS_EQ0):
+ fmt = "macro `%s' expects zero arguments";
+ break;
case (ERR_ARGS_GE1):
fmt = "macro `%s' expects one or more arguments";
break;
+ case (ERR_ARGS_LE2):
+ fmt = "macro `%s' expects two or fewer arguments";
+ break;
case (ERR_ARGS_MANY):
fmt = "macro `%s' has too many arguments";
break;