summaryrefslogtreecommitdiffstats
path: root/out.c
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
commit815d47fb2296ee1da844b1f33f2170aca4c312de (patch)
tree39de07ee5fe2335eff9128a498f7b4d1e1b853a8 /out.c
parent80aa3d0c6da7cc73bc7d71bdf95762cc4142326c (diff)
downloadmandoc-815d47fb2296ee1da844b1f33f2170aca4c312de.tar.gz
Double-up DECO_RESERVED switch branch for colours.
Diffstat (limited to 'out.c')
-rw-r--r--out.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/out.c b/out.c
index 92b2c14a..6886f428 100644
--- a/out.c
+++ b/out.c
@@ -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;