summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-04-12 19:24:10 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-04-12 19:24:10 +0000
commit44eecac3d2aaf223f3e96869a6e2e50ac07e075a (patch)
tree0673f6fd19785b19d7991d3e665b4464a6953784
parent46efc2522501cd7521cb08c1686de2dbf6544a03 (diff)
downloadmandoc-44eecac3d2aaf223f3e96869a6e2e50ac07e075a.tar.gz
Added \^ and \~ escapes (Joerg).
-rw-r--r--ascii.in2
-rw-r--r--mdoc_strings.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/ascii.in b/ascii.in
index 58df2047..5518f12c 100644
--- a/ascii.in
+++ b/ascii.in
@@ -32,6 +32,8 @@ LINE("`", 1, "`", 1)
LINE("%", 1, "%", 1)
LINE("-", 1, "-", 1)
LINE(" ", 1, " ", 1)
+LINE("~", 1, " ", 1)
+LINE("^", 1, "", 0)
LINE("0", 1, " ", 1)
LINE(".", 1, ".", 1)
LINE("&", 1, "", 0)
diff --git a/mdoc_strings.c b/mdoc_strings.c
index cdd6c45d..c5fa51bc 100644
--- a/mdoc_strings.c
+++ b/mdoc_strings.c
@@ -87,6 +87,10 @@ mdoc_isescape(const char *p)
/* FALLTHROUGH */
case ('-'):
/* FALLTHROUGH */
+ case ('~'):
+ /* FALLTHROUGH */
+ case ('^'):
+ /* FALLTHROUGH */
case ('%'):
/* FALLTHROUGH */
case ('0'):