From 385d605a0d5badafcade110bd877213f1d7df0d9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 5 Dec 2014 15:16:54 +0000 Subject: Do not misinterpret function arguments as function names; improves semantic analysis of more than 300 manuals. --- mandocdb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mandocdb.c') 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); -- cgit