summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-23 13:55:55 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-23 13:55:55 +0000
commit970476b50a74492edd4cf5202324ba6c1edc6229 (patch)
treea4a30ce822973e88cfe6de7a954b8f17f871d84c /mdoc_validate.c
parentd9ef974d05cb710d89c63e8ee474a0eb00e2d56b (diff)
downloadmandoc-970476b50a74492edd4cf5202324ba6c1edc6229.tar.gz
oops, in NAME, don't nag about the comma after .Nm
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index c434d2b3..11365302 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1763,6 +1763,10 @@ post_sh_name(POST_ARGS)
mandoc_msg(MANDOCERR_NAMESEC_ND,
mdoc->parse, n->line, n->pos, NULL);
break;
+ case MDOC_MAX:
+ if (hasnm)
+ break;
+ /* FALLTHROUGH */
default:
mandoc_msg(MANDOCERR_NAMESEC_BAD, mdoc->parse,
n->line, n->pos, mdoc_macronames[n->tok]);