summaryrefslogtreecommitdiffstats
path: root/strings.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-27 08:20:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-27 08:20:15 +0000
commit40047433f03f7588fe976e7c30c82cc1430840b7 (patch)
tree202374dfd892d8b8888714619194a48c0e3a0e37 /strings.c
parent6abca7249ad0cbaff51be269f4d24ae7a7ba0abd (diff)
downloadmandoc-40047433f03f7588fe976e7c30c82cc1430840b7.tar.gz
More character-encoding.
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/strings.c b/strings.c
index 8fca06ff..1e9a6905 100644
--- a/strings.c
+++ b/strings.c
@@ -61,6 +61,18 @@ mdoc_isescape(const char *p)
/* FALLTHROUGH */
case ('e'):
return(2);
+ case ('*'):
+ if (0 == *++p || ! isgraph((int)*p))
+ return(0);
+ switch (*p) {
+ case ('('):
+ if (0 == *++p || ! isgraph((int)*p))
+ return(0);
+ return(4);
+ default:
+ break;
+ }
+ return(3);
case ('('):
if (0 == *++p || ! isgraph((int)*p))
return(0);