summaryrefslogtreecommitdiffstats
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-30 02:36:38 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-30 02:36:38 +0000
commit672fb7896ca2c19f7313864be8ddba51337a45c0 (patch)
tree526fb2a5840669c169364a7f3553d675b0a193ca /mandoc.1
parent189a8d328ad3183232385bd1ceea6a0557c5cc1b (diff)
downloadmandoc-672fb7896ca2c19f7313864be8ddba51337a45c0.tar.gz
warn about attempts to call non-callable macros;
inspired by a similar warning in the groff_mdoc(7) macros
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.17
1 files changed, 7 insertions, 0 deletions
diff --git a/mandoc.1 b/mandoc.1
index 51028fe9..cd1b206b 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -803,6 +803,13 @@ Probably, there are author names lacking markup.
See the
.Xr mdoc 7
manual for replacements.
+.It Sy "macro neither callable nor escaped"
+.Pq mdoc
+The name of a macro that is not callable appears on a macro line.
+It is printed verbatim.
+If the intention is to call it, move it to its own line;
+otherwise, escape it by prepending
+.Sq \e& .
.It Sy "skipping paragraph macro"
In
.Xr mdoc 7