summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-19 07:53:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-19 07:53:40 +0000
commit01d048af1ebafb504ad8aa9241d189571c5099b4 (patch)
treeb5eb8251cf5328808a2272399ee60f3f74e8c3f9
parent52f37ad3e3a4f0b73bd7004eb2d85958efabb3b0 (diff)
downloadmandoc-01d048af1ebafb504ad8aa9241d189571c5099b4.tar.gz
mandoc-01d048af1ebafb504ad8aa9241d189571c5099b4.tar.zst
mandoc-01d048af1ebafb504ad8aa9241d189571c5099b4.zip
Double-up DECO_RESERVED switch branch for colours.
-rw-r--r--out.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/out.c b/out.c
index 9e50628a..1077aaed 100644
--- a/out.c
+++ b/out.c
@@ -1,4 +1,4 @@
-/* $Id: out.c,v 1.19 2010/07/18 23:06:18 kristaps Exp $ */
+/* $Id: out.c,v 1.20 2010/07/19 07:53:40 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -218,24 +218,14 @@ a2roffdeco(enum roffdeco *d, const char **word, size_t *sz)
break;
}
break;
- case ('*'):
- *d = DECO_RESERVED;
- switch (wp[i++]) {
- case ('('):
- lim = 2;
- break;
- case ('['):
- term = ']';
- break;
- default:
- i--;
- lim = 1;
- break;
- }
- break;
case ('M'):
/* FALLTHROUGH */
case ('m'):
+ /* FALLTHROUGH */
+ case ('*'):
+ if ('*' == c)
+ *d = DECO_RESERVED;
+
switch (wp[i++]) {
case ('('):
lim = 2;