X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/f39e2b991210f1443885f9363e390ca32e234309..666edb2f0564799fac2ef0a2bf2587146bc11593:/mdocml.c?ds=inline diff --git a/mdocml.c b/mdocml.c index d872caa3..8a896bba 100644 --- a/mdocml.c +++ b/mdocml.c @@ -1,4 +1,4 @@ -/* $Id: mdocml.c,v 1.26 2008/12/28 21:25:09 kristaps Exp $ */ +/* $Id: mdocml.c,v 1.30 2008/12/30 19:06:03 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -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,18 @@ 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_EQ1): + fmt = "macro `%s' expects one argument"; + 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; @@ -488,9 +500,15 @@ msg_warn(void *arg, int tok, int col, enum mdoc_warn type) case (WARN_IGN_AFTER_BLK): fmt = "ignore: macro `%s' ignored after block macro"; break; + case (WARN_IGN_OBSOLETE): + fmt = "ignore: macro `%s' is obsolete"; + break; case (WARN_IGN_BEFORE_BLK): fmt = "ignore: macro before block macro `%s' ignored"; break; + case (WARN_COMPAT_TROFF): + fmt = "compat: macro `%s' behaves differently in troff and nroff"; + break; default: abort(); /* NOTREACHED */