]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/de/escname.in
If a user-defined macro is aborted because it exceeds the stack
[mandoc.git] / regress / roff / de / escname.in
1 .Dd June 29, 2014
2 .Dt DE-ESCNAME 1
3 .Os OpenBSD
4 .Sh NAME
5 .Nm de-escname
6 .Nd escape sequences in macro names
7 .Sh DESCRIPTION
8 initial text
9 .Pp
10 define second = val2
11 .de second
12 val2
13 ..
14 .Pp
15 define first\esecond = val3
16 .de first\\second end3
17 val3
18 .end3
19 .Pp
20 define first = val1
21 .de first\esecond
22 val1
23 ..
24 .Pp
25 Values (first, second, first\esecond):
26 .first
27 .second
28 .first\\second
29 .Pp
30 Remove all but second:
31 .rm first\\second first\esecond second
32 .first
33 .second
34 .first\\second
35 .Pp
36 macro seperated from argument by an escape sequence:
37 .de witharg end4 excess arguments
38 .Dq \\$1
39 .end4 tail argument
40 .witharg\(enargument
41 .Pp
42 .de\e
43 final text