diff options
author | 2014-12-05 15:16:25 +0000 | |
---|---|---|
committer | 2014-12-05 15:16:25 +0000 | |
commit | 8284db4856f48242528cce52eaa600a96a020b1c (patch) | |
tree | 311c624ef5ae68796b5f8ebfd9006cab89e8049e | |
parent | macro cleanup: remove bogus .Nm and split joint .Fn arguments (diff) | |
download | wireguard-openbsd-8284db4856f48242528cce52eaa600a96a020b1c.tar.xz wireguard-openbsd-8284db4856f48242528cce52eaa600a96a020b1c.zip |
Do not misinterpret function arguments as function names;
improves semantic analysis of more than 300 manuals.
-rw-r--r-- | usr.bin/mandoc/mandocdb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mandocdb.c b/usr.bin/mandoc/mandocdb.c index 7770550d1aa..84de236abf2 100644 --- a/usr.bin/mandoc/mandocdb.c +++ b/usr.bin/mandoc/mandocdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mandocdb.c,v 1.131 2014/12/05 14:26:23 schwarze Exp $ */ +/* $OpenBSD: mandocdb.c,v 1.132 2014/12/05 15:16:25 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -1671,6 +1671,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); |