diff options
author | 2014-11-30 02:36:38 +0000 | |
---|---|---|
committer | 2014-11-30 02:36:38 +0000 | |
commit | 09af02110fb2332decede6c59de9e177433c15d7 (patch) | |
tree | 5c9e42c7d9eb47c69177aeb4177861bba1945485 /mandoc.1 | |
parent | 929d6892d847e3b8dbd10eb1d45d0699169185ad (diff) | |
download | mandoc-09af02110fb2332decede6c59de9e177433c15d7.tar.gz mandoc-09af02110fb2332decede6c59de9e177433c15d7.tar.zst mandoc-09af02110fb2332decede6c59de9e177433c15d7.zip |
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.1 | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,4 +1,4 @@ -.\" $Id: mandoc.1,v 1.125 2014/11/28 18:09:01 schwarze Exp $ +.\" $Id: mandoc.1,v 1.126 2014/11/30 02:36:38 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2012, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: November 28 2014 $ +.Dd $Mdocdate: November 30 2014 $ .Dt MANDOC 1 .Os .Sh NAME @@ -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 |