source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Do not misinterpret function arguments as function names;
@ 2014-12-05 15:16 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-12-05 15:16 UTC (permalink / raw)
  To: source

Log Message:
-----------
Do not misinterpret function arguments as function names;
improves semantic analysis of more than 300 manuals.

Modified Files:
--------------
    mdocml:
        mandocdb.c

Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v
retrieving revision 1.176
retrieving revision 1.177
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.176 -r1.177
--- mandocdb.c
+++ mandocdb.c
@@ -1681,6 +1681,9 @@ parse_mdoc_Fo(struct mpage *mpage, const
 	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);
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-05 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-05 15:16 mdocml: Do not misinterpret function arguments as function names; schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).