summaryrefslogtreecommitdiffstats
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-04 19:20:12 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-04 19:20:12 +0000
commit58bcb2f42259b0f030965cd8437c90e4704edb0e (patch)
tree27db2d9620c03dcaaf948a5ff5a2b9b86af10f3f /mandoc.1
parente8b6c8a8ee532ff2305958026287532e9746a3f0 (diff)
downloadmandoc-58bcb2f42259b0f030965cd8437c90e4704edb0e.tar.gz
improve diagnostics regarding arguments of .An .Pp .Lp .br .sp
in particular, get rid of check_count(..., CHECK_EQ, 0)
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.114
1 files changed, 13 insertions, 1 deletions
diff --git a/mandoc.1 b/mandoc.1
index 6ab59a03..5461300a 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1602,6 +1602,8 @@ An
.Ic \&Ef ,
.Ic \&Ek ,
.Ic \&El ,
+.Ic \&Lp ,
+.Ic \&Pp ,
.Ic \&Re ,
.Ic \&Rs ,
or
@@ -1621,14 +1623,24 @@ or
.Ic \&EN
macro, or a
.Xr roff 7
+.Ic \&br
+request or
.Sq \&..
block closing request is invoked with at least one argument.
All arguments are ignored.
.It Sy "skipping excess arguments"
.Pq mdoc , man , roff
The
+.Ic \&An
+macro is invoked with another argument after
+.Fl split
+or
+.Fl nosplit ,
+the
.Ic \&Bf
-macro is invoked with more than one argument, the
+macro or the
+.Ic \&sp
+request is invoked with more than one argument, the
.Ic \&RE
macro is invoked with more than one argument
or with a non-integer argument, or a request of the