Roff tokenizer: better handling of escapes.

This commit is contained in:
John MacFarlane
2018-10-28 21:37:57 -07:00
parent 7a30eae693
commit 8d55dc10cd
2 changed files with 41 additions and 12 deletions
+2 -2
View File
@@ -63,12 +63,12 @@ tests = [
text " ok")
, "skip" =:
"a\\%\\{\\}\\\n\\:b\\0"
=?> (para $ str "ab")
=?> (para $ str "ab\8199")
, "replace" =:
"\\-\\ \\\\\\[lq]\\[rq]\\[em]\\[en]\\*(lq\\*(rq"
=?> (para $ text "- \\“”—–“”")
, "replace2" =:
"\\t\\e\\`\\^\\|\\'" =?> (para $ text "\\` `")
"\\t\\e\\`\\^\\|\\'" =?> (para $ text "\\`\8202\8198`")
, "comment with \\\"" =:
"Foo \\\" bar\n" =?> (para $ text "Foo")
, "comment with \\#" =: