aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-25 17:43:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-25 17:43:45 +0000
commit1fdb4db7a387f66dbf9fc6b0869d19dfe765a5aa (patch)
tree78c84c03a6f5831ed6c6f758e4b370367dba22af /mandoc.h
parent968237f527c0925ee4300f535b2efb1d2a9e783f (diff)
downloadmandoc-1fdb4db7a387f66dbf9fc6b0869d19dfe765a5aa.tar.gz
mandoc-1fdb4db7a387f66dbf9fc6b0869d19dfe765a5aa.tar.zst
mandoc-1fdb4db7a387f66dbf9fc6b0869d19dfe765a5aa.zip
Catch typos in .Sh names; suggested by jmc@.
I'm using a very simple, linear time / zero space fuzzy string matching heuristic rather than a full Levenshtein metric, to keep the code both simple and fast.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc.h b/mandoc.h
index e6b48f11..8e7ddf44 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.235 2017/06/24 18:58:33 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.236 2017/06/25 17:43:45 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -56,6 +56,7 @@ enum mandocerr {
MANDOCERR_DATE_LEGACY, /* legacy man(7) date format: Dd ... */
MANDOCERR_RCS_REP, /* duplicate RCS id: ... */
+ MANDOCERR_SEC_TYPO, /* typo in section name: Sh ... */
MANDOCERR_MACRO_USELESS, /* useless macro: macro */
MANDOCERR_BX, /* consider using OS macro: macro */
MANDOCERR_ER_ORDER, /* errnos out of order: Er ... */