summaryrefslogtreecommitdiffstats
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
commit0ff863842ee7d3511d2cc8fbf907f6cf10b5b12b (patch)
treea3c52e364412dc4643bbcabdd5ae42b53ee8e37f /mandoc.1
parent03f1aa70af05538acf06ea6c12e41402f4afd2d1 (diff)
downloadmandoc-0ff863842ee7d3511d2cc8fbf907f6cf10b5b12b.tar.gz
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.18
1 files changed, 8 insertions, 0 deletions
diff --git a/mandoc.1 b/mandoc.1
index fc203c3e..7340a8d2 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -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