summaryrefslogtreecommitdiffstats
path: root/argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-09 15:07:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-09 15:07:04 +0000
commit769d4e324aa3e88fcd0dddab649abc5c15298d11 (patch)
tree26507249957b78470d5069ac3801ee05b12568d4 /argv.c
parentfb53bc928f34b334a138fad9fa6a6b9081a9f7c7 (diff)
downloadmandoc-769d4e324aa3e88fcd0dddab649abc5c15298d11.tar.gz
*** empty log message ***
Diffstat (limited to 'argv.c')
-rw-r--r--argv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/argv.c b/argv.c
index c976314f..c3c1e4dc 100644
--- a/argv.c
+++ b/argv.c
@@ -411,8 +411,8 @@ mdoc_argv(struct mdoc *mdoc, int line, int tok,
buf[(*pos)++] = 0;
if (MDOC_ARG_MAX == (v->arg = lookup(tok, argv))) {
- (void)mdoc_perr(mdoc, line, i, ERR_SYNTAX_ARG);
- return(ARGV_ERROR);
+ (void)mdoc_pwarn(mdoc, line, i, WARN_SYNTAX_ARGLIKE);
+ return(ARGV_WORD);
}
while (buf[*pos] && isspace(buf[*pos]))