summaryrefslogtreecommitdiffstats
path: root/regress
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-30 22:56:02 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-30 22:56:02 +0000
commit3bc2083f7ee493642602f9dcee0f82ecbcca4c85 (patch)
treedcd389ecbb19d7ac1548b907063f320ddff97cb5 /regress
parent23898d93c7914bc2b07dc60fde156bdff597205b (diff)
downloadmandoc-3bc2083f7ee493642602f9dcee0f82ecbcca4c85.tar.gz
Migrate `Bl -column' phrases to be MDOC_BODY instead of MDOC_HEAD. This
will make it easy for re-entrant parsing of `Ta' macros to fit in with standard closure rules. Added some more regressions for `Bl -column'. Note that one should fail, as documented in the TODO file. Recorded change of AST BNF in mdoc.3.
Diffstat (limited to 'regress')
-rw-r--r--regress/mdoc/It/nested-punctuation.in10
-rw-r--r--regress/mdoc/It/nocolspec.in10
-rw-r--r--regress/mdoc/It/pre-punct.in17
-rw-r--r--regress/mdoc/It/tab-macros.in17
4 files changed, 54 insertions, 0 deletions
diff --git a/regress/mdoc/It/nested-punctuation.in b/regress/mdoc/It/nested-punctuation.in
new file mode 100644
index 00000000..998d5ee2
--- /dev/null
+++ b/regress/mdoc/It/nested-punctuation.in
@@ -0,0 +1,10 @@
+.Dd $Mdocdate$
+.Dt FOO
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+.Bl -column asdfasdf asdfasdf
+.It ( asdf ) ; Ta ( ( asdf :
+.El
diff --git a/regress/mdoc/It/nocolspec.in b/regress/mdoc/It/nocolspec.in
new file mode 100644
index 00000000..958bd9bd
--- /dev/null
+++ b/regress/mdoc/It/nocolspec.in
@@ -0,0 +1,10 @@
+.Dd $Mdocdate$
+.Dt FOO
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+.Bl -column
+.It asdf Ta asdf
+.El
diff --git a/regress/mdoc/It/pre-punct.in b/regress/mdoc/It/pre-punct.in
new file mode 100644
index 00000000..21be7d83
--- /dev/null
+++ b/regress/mdoc/It/pre-punct.in
@@ -0,0 +1,17 @@
+.Dd $Mdocdate$
+.Dt FOO
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+.Bl -column asdfasdf asdfasdf asdfasdf
+.It ( asdf asdf asdf
+.El
+.Bl -column asdfasdf asdfasdf asdfasdf
+.It ( asdf ; Ta ( asdf ; Ta asdf
+.El
+.Bl -tag -width Ds
+.It asdf
+asdf
+.El
diff --git a/regress/mdoc/It/tab-macros.in b/regress/mdoc/It/tab-macros.in
new file mode 100644
index 00000000..0c7b367e
--- /dev/null
+++ b/regress/mdoc/It/tab-macros.in
@@ -0,0 +1,17 @@
+.Dd $Mdocdate$
+.Dt FOO
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+.Bl -column asdfasdf asdfasdf asdfasdf
+.It Fl asdf asdf asdf
+.El
+.Bl -column asdfasdf asdfasdf asdfasdf
+.It Ar asdf ; Ta Fl asdf ; Ta asdf
+.El
+.Bl -tag -width Ds
+.It asdf
+asdf
+.El