summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-05 15:16:54 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-05 15:16:54 +0000
commit385d605a0d5badafcade110bd877213f1d7df0d9 (patch)
tree025c30134763e92287b924fe9150062894c94cae /mandocdb.c
parent4d6a4a431dd9e4c2c45a3f9691744d7f31fd2c34 (diff)
downloadmandoc-385d605a0d5badafcade110bd877213f1d7df0d9.tar.gz
Do not misinterpret function arguments as function names;
improves semantic analysis of more than 300 manuals.
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 5638eb84..d174306a 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1681,6 +1681,9 @@ parse_mdoc_Fo(struct mpage *mpage, const struct mdoc_meta *meta,
const struct mdoc_node *n)
{
+ if (n->type != MDOC_HEAD)
+ return(1);
+
putmdockey(mpage, n->child, TYPE_Fn);
if (n->sec == SEC_SYNOPSIS)
putmdockey(mpage, n->child, NAME_SYN);