aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff/de/escname.in
blob: 99305eaf7c111b75348bf7ccaff99323ea3a473d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.\" $OpenBSD: escname.in,v 1.5 2022/06/03 11:50:25 schwarze Exp $
.Dd $Mdocdate: June 3 2022 $
.Dt DE-ESCNAME 1
.Os
.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
define first\e.second = val_dot
.de first\.second
val_dot
..
.Pp
define first\eGsecond = val_inval
.de first\Gsecond
val_inval
..
.Pp
Values:
.Bl -tag -width first_.second -compact
.It first
.first
.It second
.second
.It first\esecond
.first\\second
.It first.second
.first.second
.It first\e.second
.first\.second
.It firstGsecond
.firstGsecond
.It first\eGsecond
.first\Gsecond
.El
.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