summaryrefslogtreecommitdiffstats
path: root/regress/roff/esc/bs_mdoc.in
blob: 09bdd20d6e9f2ba6426778c3b19cf727d9f73f44 (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
.\" $OpenBSD: bs_mdoc.in,v 1.1 2019/01/17 06:29:14 schwarze Exp $
.Dd $Mdocdate$
.Dt ESC-BS_MDOC 1
.Os
.Sh NAME
.Nm esc-bs_mdoc
.Nd escaped backslashes in mdoc(7) code
.Sh DESCRIPTION
.ds usestr (initial)
.de testmac
prefix\*[usestr]suffix
prefix\\*[usestr]suffix
..
.ds teststr prefix\*[usestr]middle\\*[usestr]suffix
.ds usestr (later)
on a text line: prefix\\suffix
.Pp
in a macro definition:
.testmac
.Pp
in a string definition: \*[teststr]
.Pp
in a high-level macro argument:
.Sy prefix\\*[usestr]suffix
.Pp
.de argmac
{\\$1}
..
in a user-defined macro argument:
.argmac prefix\\*[usestr]suffix