diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-27 08:20:15 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-27 08:20:15 +0000 |
commit | 40047433f03f7588fe976e7c30c82cc1430840b7 (patch) | |
tree | 202374dfd892d8b8888714619194a48c0e3a0e37 /strings.c | |
parent | 6abca7249ad0cbaff51be269f4d24ae7a7ba0abd (diff) | |
download | mandoc-40047433f03f7588fe976e7c30c82cc1430840b7.tar.gz |
More character-encoding.
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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); |