]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/esc/bs_mdoc.in
Test handling of escaped backslashes because the code related to
[mandoc.git] / regress / roff / esc / bs_mdoc.in
1 .\" $OpenBSD: bs_mdoc.in,v 1.1 2019/01/17 06:29:14 schwarze Exp $
2 .Dd $Mdocdate: January 17 2019 $
3 .Dt ESC-BS_MDOC 1
4 .Os
5 .Sh NAME
6 .Nm esc-bs_mdoc
7 .Nd escaped backslashes in mdoc(7) code
8 .Sh DESCRIPTION
9 .ds usestr (initial)
10 .de testmac
11 prefix\*[usestr]suffix
12 prefix\\*[usestr]suffix
13 ..
14 .ds teststr prefix\*[usestr]middle\\*[usestr]suffix
15 .ds usestr (later)
16 on a text line: prefix\\suffix
17 .Pp
18 in a macro definition:
19 .testmac
20 .Pp
21 in a string definition: \*[teststr]
22 .Pp
23 in a high-level macro argument:
24 .Sy prefix\\*[usestr]suffix
25 .Pp
26 .de argmac
27 {\\$1}
28 ..
29 in a user-defined macro argument:
30 .argmac prefix\\*[usestr]suffix