diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-06 17:26:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-06 17:26:04 +0000 |
commit | 78f3b980a3571b0a981193a493a0291762bd2aca (patch) | |
tree | 677a7e13080f682d4bd8540edae3277db581341b /mandoc.h | |
parent | 006240c00075748ea6caaf15bc37a67cf3454ee5 (diff) | |
download | mandoc-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |