summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/roff/while/badargs.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-08-24 22:56:38 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-08-24 22:56:38 +0000
commitc96fec784ea47913e52fd0ae178dd4c12fc9bd14 (patch)
treea520e19aef4cb8ce22538b3f4c142f8a1fdcdd1c /regress/usr.bin/mandoc/roff/while/badargs.in
parentb2183c8e49659ab53eb8ab74fdff137db689f39d (diff)
Rudimentary implementation of the roff(7) .while request.
Needed for example by groff_hdtbl(7). There are two limitations: It does not support nested .while requests yet, and each .while loop must start and end in the same scope. The roff_parseln() return codes are now more flexible and allow OR'ing options.
Diffstat (limited to 'regress/usr.bin/mandoc/roff/while/badargs.in')
-rw-r--r--regress/usr.bin/mandoc/roff/while/badargs.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/regress/usr.bin/mandoc/roff/while/badargs.in b/regress/usr.bin/mandoc/roff/while/badargs.in
new file mode 100644
index 00000000000..bbbd7cd056a
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/while/badargs.in
@@ -0,0 +1,14 @@
+.\" $OpenBSD: badargs.in,v 1.1 2018/08/24 22:56:37 schwarze Exp $
+.Dd $Mdocdate: August 24 2018 $
+.Dt WHILE-BADARGS 1
+.Os
+.Sh NAME
+.Nm while-badargs
+.Nd dubious arguments for the while request
+.Sh DESCRIPTION
+while does not support next line scope:
+.nr cnt 2 1
+.while \n-[cnt]
+\n[cnt]
+.Pp
+final text