diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-19 07:53:40 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-19 07:53:40 +0000 |
commit | 815d47fb2296ee1da844b1f33f2170aca4c312de (patch) | |
tree | 39de07ee5fe2335eff9128a498f7b4d1e1b853a8 /out.c | |
parent | 80aa3d0c6da7cc73bc7d71bdf95762cc4142326c (diff) | |
download | mandoc-815d47fb2296ee1da844b1f33f2170aca4c312de.tar.gz |
Double-up DECO_RESERVED switch branch for colours.
Diffstat (limited to 'out.c')
-rw-r--r-- | out.c | 20 |
1 files changed, 5 insertions, 15 deletions
@@ -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; |