aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-11 21:14:16 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-11 21:14:16 +0000
commitfaae039ceebc3ae28b1b82cafbd646d619a0358c (patch)
tree47c2f8229c8fd8f560ea8b254b36d03b430cb534 /mandoc.1
parent1861ab2e818a4f9e21e8ed19d05cd46f8dc4e409 (diff)
downloadmandoc-faae039ceebc3ae28b1b82cafbd646d619a0358c.tar.gz
mandoc-faae039ceebc3ae28b1b82cafbd646d619a0358c.tar.zst
mandoc-faae039ceebc3ae28b1b82cafbd646d619a0358c.zip
warn about parentheses in function names after .Fn and .Fo;
particularly useful when converting from other languages to mdoc(7); feature suggested by bentley@
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.112
1 files changed, 10 insertions, 2 deletions
diff --git a/mandoc.1 b/mandoc.1
index e280a262..3773ce94 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.116 2014/10/10 08:44:24 kristaps Exp $
+.\" $Id: mandoc.1,v 1.117 2014/10/11 21:14:16 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: October 10 2014 $
+.Dd $Mdocdate: October 11 2014 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -1120,6 +1120,14 @@ An argument of an
or
.Ic \&Fn
macro contains a comma; it should probably be split into two arguments.
+.It Sy "parenthesis in function name"
+.Pq mdoc
+The first argument of an
+.Ic \&Fc
+or
+.Ic \&Fn
+macro contains an opening or closing parenthesis; that's probably wrong,
+parentheses are added automatically.
.It Sy "invalid content in Rs block"
.Pq mdoc
An