summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-24 12:17:25 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-24 12:17:25 +0000
commitb7bd09220f5261b8ac0512aa2d7f046cedba9040 (patch)
treeacc7abd7f79b9dc3f6fd9d049e1184fe4c7f4862
parent9a5060e616c6944846b2714f10747e07ddbab0b8 (diff)
downloadmandoc-b7bd09220f5261b8ac0512aa2d7f046cedba9040.tar.gz
Allow `An' to accept NULL arguments (-split/-nosplit).
-rw-r--r--mdoc_macro.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 2def1606..bbc89148 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -742,15 +742,17 @@ in_line(MACRO_PROT_ARGS)
* usually because of reserved words) to squeak by.
*/
switch (tok) {
- case (MDOC_Nm):
+ case (MDOC_An):
+ /* FALLTHROUGH */
+ case (MDOC_Ar):
/* FALLTHROUGH */
case (MDOC_Fl):
/* FALLTHROUGH */
case (MDOC_Lk):
/* FALLTHROUGH */
- case (MDOC_Pa):
+ case (MDOC_Nm):
/* FALLTHROUGH */
- case (MDOC_Ar):
+ case (MDOC_Pa):
nc = 1;
break;
default: