diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-29 18:08:44 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-29 18:08:44 +0000 |
commit | f6c6b91bd1d5c314c866ec4cb71f4ff2573fc2f2 (patch) | |
tree | a95d3bfca3019187b4e9c8f2fe8f2bf34b87d385 /mdocml.c | |
parent | e4dec0e1c53e6a8d07ea4cba74a3aa831a90c034 (diff) | |
download | mandoc-f6c6b91bd1d5c314c866ec4cb71f4ff2573fc2f2.tar.gz |
More macros.
Diffstat (limited to 'mdocml.c')
-rw-r--r-- | mdocml.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |