From b7bd09220f5261b8ac0512aa2d7f046cedba9040 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 24 Jul 2009 12:17:25 +0000 Subject: Allow `An' to accept NULL arguments (-split/-nosplit). --- mdoc_macro.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mdoc_macro.c') 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: -- cgit