summaryrefslogtreecommitdiffstats
path: root/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/strings.c b/strings.c
index 1abe92da..eb6a8917 100644
--- a/strings.c
+++ b/strings.c
@@ -69,6 +69,11 @@ mdoc_isescape(const char *p)
if (0 == *++p || ! isgraph((int)*p))
return(0);
return(4);
+ case ('['):
+ for (c = 3, p++; *p && ']' != *p; p++, c++)
+ if ( ! isgraph((int)*p))
+ break;
+ return(*p == ']' ? c : 0);
default:
break;
}