diff options
Diffstat (limited to 'regress/usr.bin/mandoc/mdoc/Op')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Op/Makefile | 8 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Op/break.in | 29 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Op/break.out_lint | 3 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Op/broken.in | 24 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Op/broken.out_ascii | 11 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Op/broken.out_lint | 2 |
6 files changed, 75 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Op/Makefile b/regress/usr.bin/mandoc/mdoc/Op/Makefile index 85d9460933a..ab934a4e130 100644 --- a/regress/usr.bin/mandoc/mdoc/Op/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Op/Makefile @@ -1,5 +1,9 @@ -# $OpenBSD: Makefile,v 1.2 2011/11/17 16:28:46 schwarze Exp $ +# $OpenBSD: Makefile,v 1.3 2014/07/02 11:42:56 schwarze Exp $ -REGRESS_TARGETS=punct +REGRESS_TARGETS = break broken punct +LINT_TARGETS = break broken + +SKIP_GROFF = break +SKIP_ASCII = break .include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/mdoc/Op/break.in b/regress/usr.bin/mandoc/mdoc/Op/break.in new file mode 100644 index 00000000000..5ca7ffe28b1 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Op/break.in @@ -0,0 +1,29 @@ +.Dd July 2, 2014 +.Dt OP-BREAK 1 +.Os OpenBSD +.Sh NAME +.Nm Op-break +.Nd partial explicit block broken by partial implicit block +.Sh DESCRIPTION +before both +.Op inside first Do inside both +inside second +.Dc +after both +.Pp +0 +.Op 1 Op 12 Do 123 +3 +.Dc +0 +.\" The following does not work yet: +.ig +.Pp +0 +.Op 1 Op 12 Do 123 Do 1234 +34 +.Dc +4 +.Dc +0 +.. diff --git a/regress/usr.bin/mandoc/mdoc/Op/break.out_lint b/regress/usr.bin/mandoc/mdoc/Op/break.out_lint new file mode 100644 index 00000000000..879b003ff94 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Op/break.out_lint @@ -0,0 +1,3 @@ +mandoc: break.in:9:2: WARNING: blocks badly nested: Op breaks Do +mandoc: break.in:15:7: WARNING: blocks badly nested: Op breaks Do +mandoc: break.in:15:2: WARNING: blocks badly nested: Op breaks Op diff --git a/regress/usr.bin/mandoc/mdoc/Op/broken.in b/regress/usr.bin/mandoc/mdoc/Op/broken.in new file mode 100644 index 00000000000..43574317659 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Op/broken.in @@ -0,0 +1,24 @@ +.Dd July 2, 2014 +.Dt OP-BROKEN 1 +.Os OpenBSD +.Sh NAME +.Nm Op-broken +.Nd partial implicit block broken by partial explicit block +.Sh DESCRIPTION +before both +.Do inside first +.Op inside both Dc inside second +after both +.Pp +0 +.Do 1 +.Op 12 Op 123 Dc 23 +0 +.\" The following does not work yet, see mdoc_macro.c rev. 1.47. +.ig +.Pp +0 +.Do 1 Do 12 +.Op 123 Op 1234 Dc 134 Dc 34 +0 +.. diff --git a/regress/usr.bin/mandoc/mdoc/Op/broken.out_ascii b/regress/usr.bin/mandoc/mdoc/Op/broken.out_ascii new file mode 100644 index 00000000000..32f1a6a1248 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Op/broken.out_ascii @@ -0,0 +1,11 @@ +OP-BROKEN(1) OpenBSD Reference Manual OP-BROKEN(1) + +NNAAMMEE + OOpp--bbrrookkeenn - partial implicit block broken by partial explicit block + +DDEESSCCRRIIPPTTIIOONN + before both ``inside first [inside both'' inside second] after both + + 0 ``1 [12 [123'' 23]] 0 + +OpenBSD July 2, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Op/broken.out_lint b/regress/usr.bin/mandoc/mdoc/Op/broken.out_lint new file mode 100644 index 00000000000..dbab12976d0 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Op/broken.out_lint @@ -0,0 +1,2 @@ +mandoc: broken.in:10:17: WARNING: blocks badly nested: Dc breaks Op +mandoc: broken.in:15:15: WARNING: blocks badly nested: Dc breaks Op |