summaryrefslogtreecommitdiffstatshomepage
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
commit4288bed0195f1c3045f1a22ad776290be1f36746 (patch)
treebd15ac85aaebb8be66cac8ba33c0d2775620809e
parentb6860e4400b8b5350bb31fa72b4632dfac772774 (diff)
downloadmandoc-4288bed0195f1c3045f1a22ad776290be1f36746.tar.gz
mandoc-4288bed0195f1c3045f1a22ad776290be1f36746.tar.zst
mandoc-4288bed0195f1c3045f1a22ad776290be1f36746.zip
Allow `An' to accept NULL arguments (-split/-nosplit).
-rw-r--r--mdoc_macro.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 29679f86..b156f0bd 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_macro.c,v 1.25 2009/07/21 15:53:47 kristaps Exp $ */
+/* $Id: mdoc_macro.c,v 1.26 2009/07/24 12:17:25 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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: