summaryrefslogtreecommitdiffstats
path: root/regress/mdoc
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-29 18:50:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-29 18:50:44 +0000
commit856ccfd0e453b0e0b926d34de280f8e2649d3da6 (patch)
treec298f5775927630915da5b976d7a78f098b592ea /regress/mdoc
parent9556337196fc2bcc77b1327d58828a073ca49879 (diff)
downloadmandoc-856ccfd0e453b0e0b926d34de280f8e2649d3da6.tar.gz
Adding `Ar' regression for empty-prior-closing-punctuation checkin.
NOTE: this will not work on old groff, which forgets to print `file ...' when encountering an empty Ar node.
Diffstat (limited to 'regress/mdoc')
-rw-r--r--regress/mdoc/Ar/empty.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/regress/mdoc/Ar/empty.in b/regress/mdoc/Ar/empty.in
new file mode 100644
index 00000000..6ee7e152
--- /dev/null
+++ b/regress/mdoc/Ar/empty.in
@@ -0,0 +1,17 @@
+.\" THIS WILL FAIL ON OLD GROFF!
+.\" IT DOESN'T PROCESS EMPTY `AR' MACROS CORRECTLY.
+.Dd May 16, 2010
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+.Ar . a
+.Pp
+.Ar ;
+.Pp
+.Ar expr1 Ar : expr2
+.Pp
+.Ar expr1 Ar . ; expr2 ( expr3 )
+.Ar expr1 Ar . ; ) ( expr3 )