summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-06 17:26:04 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-06 17:26:04 +0000
commit78f3b980a3571b0a981193a493a0291762bd2aca (patch)
tree677a7e13080f682d4bd8540edae3277db581341b /mandoc.h
parent006240c00075748ea6caaf15bc37a67cf3454ee5 (diff)
downloadmandoc-78f3b980a3571b0a981193a493a0291762bd2aca.tar.gz
Using .Nd only makes sense in the NAME section.
Warn if that macro occurs elsewhere. Triggered by a question from Dag-Erling Smoergrav <des @ FreeBSD>.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mandoc.h b/mandoc.h
index b9b738db..be0693f3 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -71,6 +71,7 @@ enum mandocerr {
MANDOCERR_NAMESEC_BAD, /* bad NAME section content: macro */
MANDOCERR_NAMESEC_PUNCT, /* missing comma before name: Nm name */
MANDOCERR_ND_EMPTY, /* missing description line, using "" */
+ MANDOCERR_ND_LATE, /* description line outside NAME section */
MANDOCERR_SEC_ORDER, /* sections out of conventional order: Sh title */
MANDOCERR_SEC_REP, /* duplicate section title: Sh title */
MANDOCERR_SEC_MSEC, /* unexpected section: Sh title for ... only */