summaryrefslogtreecommitdiffstats
path: root/strings.c
diff options
context:
space:
mode:
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);