diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-05 15:16:54 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-05 15:16:54 +0000 |
commit | 385d605a0d5badafcade110bd877213f1d7df0d9 (patch) | |
tree | 025c30134763e92287b924fe9150062894c94cae | |
parent | 4d6a4a431dd9e4c2c45a3f9691744d7f31fd2c34 (diff) | |
download | mandoc-385d605a0d5badafcade110bd877213f1d7df0d9.tar.gz |
Do not misinterpret function arguments as function names;
improves semantic analysis of more than 300 manuals.
-rw-r--r-- | mandocdb.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |