summaryrefslogtreecommitdiffstats
path: root/regress/roff/de/escname.in
diff options
context:
space:
mode:
Diffstat (limited to 'regress/roff/de/escname.in')
-rw-r--r--regress/roff/de/escname.in43
1 files changed, 43 insertions, 0 deletions
diff --git a/regress/roff/de/escname.in b/regress/roff/de/escname.in
new file mode 100644
index 00000000..da6d885f
--- /dev/null
+++ b/regress/roff/de/escname.in
@@ -0,0 +1,43 @@
+.Dd June 29, 2014
+.Dt DE-ESCNAME 1
+.Os OpenBSD
+.Sh NAME
+.Nm de-escname
+.Nd escape sequences in macro names
+.Sh DESCRIPTION
+initial text
+.Pp
+define second = val2
+.de second
+val2
+..
+.Pp
+define first\esecond = val3
+.de first\\second end3
+val3
+.end3
+.Pp
+define first = val1
+.de first\esecond
+val1
+..
+.Pp
+Values (first, second, first\esecond):
+.first
+.second
+.first\\second
+.Pp
+Remove all but second:
+.rm first\\second first\esecond second
+.first
+.second
+.first\\second
+.Pp
+macro seperated from argument by an escape sequence:
+.de witharg end4 excess arguments
+.Dq \\$1
+.end4 tail argument
+.witharg\(enargument
+.Pp
+.de\e
+final text