summaryrefslogtreecommitdiffstats
path: root/regress/roff/while/basic.in
blob: 07cd1282aa578ca6f74f8317ecadece07a2667b9 (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: basic.in,v 1.1 2018/08/24 22:56:37 schwarze Exp $
.Dd $Mdocdate$
.Dt WHILE-BASIC 1
.Os
.Sh NAME
.Nm while-basic
.Nd the while request
.Sh DESCRIPTION
Loop with single-line scope:
.nr cnt 11 1
.de mym
\\n-[cnt]
..
.while \n[cnt] .mym
.Pp
Loop with multi-line scope, text line closure:
.nr cnt 11
.while \n[cnt] \{\
.nr cnt -1
\n[cnt]\},
boom.
.Pp
Loop with multi-line scope, macro line closure:
.nr cnt 11
.while \n[cnt] \{\
.nr cnt -1
\n[cnt]
.\}
.Pp
final text