summaryrefslogtreecommitdiffstats
path: root/regress
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-24 11:43:13 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-24 11:43:13 +0000
commit9e0f9f2ee7f854665c6fbf442ea8339bbce17ecb (patch)
treec5b5201797d9e59ac3a378e66b6411e1b2610d7a /regress
parent6229c59e2536a1921c81abefed1a37bfd01790b0 (diff)
downloadmandoc-9e0f9f2ee7f854665c6fbf442ea8339bbce17ecb.tar.gz
Escape-sequence validation in place (for nodes).
Diffstat (limited to 'regress')
-rw-r--r--regress/test.escape.0020
-rw-r--r--regress/test.escape.0120
-rw-r--r--regress/test.escape.0220
-rw-r--r--regress/test.escape.0320
-rw-r--r--regress/test.escape.0420
-rw-r--r--regress/test.list.052
6 files changed, 101 insertions, 1 deletions
diff --git a/regress/test.escape.00 b/regress/test.escape.00
new file mode 100644
index 00000000..28df79e5
--- /dev/null
+++ b/regress/test.escape.00
@@ -0,0 +1,20 @@
+.\"
+.Dd $Mdocdate$
+.Dt mdoc 3
+.Os
+.\"
+.Sh NAME
+.Nm mdoc_free
+.Nd mdoc macro compiler library
+.\"
+.Sh SYNOPSIS
+Valid escape: \(ab
+Valid escape: \[d]
+Valid escape: \[dsdfajsdflaksjfhalksjdfh__----]
+Valid escape: \\
+Valid escape: \e
+Valid escape: \`
+Valid escape: \'
+Valid escape: \.
+Valid escape: \-
+Valid escape: \
diff --git a/regress/test.escape.01 b/regress/test.escape.01
new file mode 100644
index 00000000..2bf37cf6
--- /dev/null
+++ b/regress/test.escape.01
@@ -0,0 +1,20 @@
+.\"
+.Dd $Mdocdate$
+.Dt mdoc 3
+.Os
+.\"
+.Sh NAME
+.Nm mdoc_free
+.Nd mdoc macro compiler library
+.\"
+.Sh SYNOPSIS
+Valid escape: \(ab
+Valid escape: \[d]
+Valid escape: \[dsdfajsdflaksjfhalksjdfh__----]
+Valid escape: \\
+Valid escape: \e
+Valid escape: \`
+Valid escape: \'
+Valid escape: \.
+Valid escape: \-
+Invalid escape: \"
diff --git a/regress/test.escape.02 b/regress/test.escape.02
new file mode 100644
index 00000000..1c727a8f
--- /dev/null
+++ b/regress/test.escape.02
@@ -0,0 +1,20 @@
+.\"
+.Dd $Mdocdate$
+.Dt mdoc 3
+.Os
+.\"
+.Sh NAME
+.Nm mdoc_free
+.Nd mdoc macro compiler library
+.\"
+.Sh SYNOPSIS
+Valid escape: \(ab
+Valid escape: \[d]
+Valid escape: \[dsdfajsdflaksjfhalksjdfh__----]
+Valid escape: \\
+Valid escape: \e
+Valid escape: \`
+Valid escape: \'
+Valid escape: \.
+Valid escape: \-
+Invalid escape: \(
diff --git a/regress/test.escape.03 b/regress/test.escape.03
new file mode 100644
index 00000000..7fa92ecd
--- /dev/null
+++ b/regress/test.escape.03
@@ -0,0 +1,20 @@
+.\"
+.Dd $Mdocdate$
+.Dt mdoc 3
+.Os
+.\"
+.Sh NAME
+.Nm mdoc_free
+.Nd mdoc macro compiler library
+.\"
+.Sh SYNOPSIS
+Valid escape: \(ab
+Valid escape: \[d]
+Valid escape: \[dsdfajsdflaksjfhalksjdfh__----]
+Valid escape: \\
+Valid escape: \e
+Valid escape: \`
+Valid escape: \'
+Valid escape: \.
+Valid escape: \-
+Invalid escape: \
diff --git a/regress/test.escape.04 b/regress/test.escape.04
new file mode 100644
index 00000000..a393ab83
--- /dev/null
+++ b/regress/test.escape.04
@@ -0,0 +1,20 @@
+.\"
+.Dd $Mdocdate$
+.Dt mdoc 3
+.Os
+.\"
+.Sh NAME
+.Nm mdoc_free
+.Nd mdoc macro compiler library
+.\"
+.Sh SYNOPSIS
+Valid escape: \(ab
+Valid escape: \[d]
+Valid escape: \[dsdfajsdflaksjfhalksjdfh__----]
+Valid escape: \\
+Valid escape: \e
+Valid escape: \`
+Valid escape: \'
+Valid escape: \.
+Valid escape: \-
+Invalid escape: \[
diff --git a/regress/test.list.05 b/regress/test.list.05
index 18540423..08954e84 100644
--- a/regress/test.list.05
+++ b/regress/test.list.05
@@ -6,5 +6,5 @@
.Nd description
.Sh DESCRIPTION
.Bl -column "xxxxx" "xxxxx"
-.It d \ e f
+.It d \ e f
.El