From c13027734e9d36c96b4fd039e21c3112330c80c1 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 30 May 2010 22:56:02 +0000 Subject: 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. --- regress/mdoc/It/nested-punctuation.in | 10 ++++++++++ regress/mdoc/It/nocolspec.in | 10 ++++++++++ regress/mdoc/It/pre-punct.in | 17 +++++++++++++++++ regress/mdoc/It/tab-macros.in | 17 +++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 regress/mdoc/It/nested-punctuation.in create mode 100644 regress/mdoc/It/nocolspec.in create mode 100644 regress/mdoc/It/pre-punct.in create mode 100644 regress/mdoc/It/tab-macros.in (limited to 'regress') diff --git a/regress/mdoc/It/nested-punctuation.in b/regress/mdoc/It/nested-punctuation.in new file mode 100644 index 00000000..9647deea --- /dev/null +++ b/regress/mdoc/It/nested-punctuation.in @@ -0,0 +1,10 @@ +.Dd $Mdocdate: May 30 2010 $ +.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..1bed4246 --- /dev/null +++ b/regress/mdoc/It/nocolspec.in @@ -0,0 +1,10 @@ +.Dd $Mdocdate: May 30 2010 $ +.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..572a75cb --- /dev/null +++ b/regress/mdoc/It/pre-punct.in @@ -0,0 +1,17 @@ +.Dd $Mdocdate: May 30 2010 $ +.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..a4990c08 --- /dev/null +++ b/regress/mdoc/It/tab-macros.in @@ -0,0 +1,17 @@ +.Dd $Mdocdate: May 30 2010 $ +.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 -- cgit v1.2.3-56-ge451