summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-23 18:44:42 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-23 18:44:42 +0000
commit19f297136e00b7afc81784816777f08bd23a3ddb (patch)
treed654e0798638161d9036dc8777a02d653e282acb
parent44d2f7a5fb2e3d577c9344af556326294473069d (diff)
downloadmandoc-19f297136e00b7afc81784816777f08bd23a3ddb.tar.gz
Note GNU extensions in eqn.7. Also add `col' and `pile', which are
mentioned briefly in the eqn User's Manual, but otherwise are unspecified.
-rw-r--r--eqn.76
-rw-r--r--eqn.c2
-rw-r--r--mandoc.h2
3 files changed, 8 insertions, 2 deletions
diff --git a/eqn.7 b/eqn.7
index ea05fdaf..ddb3c636 100644
--- a/eqn.7
+++ b/eqn.7
@@ -81,9 +81,9 @@ box : text
| font box
| \*qsize\*q text box
| \*qleft\*q text eqn [\*qright\*q text]
-col : \*qlcol\*q | \*qrcol\*q | \*qccol\*q
+col : \*qlcol\*q | \*qrcol\*q | \*qccol\*q | \*qcol\*q
text : [^space\e\*q]+ | \e\*q.*\e\*q
-pile : \*qlpile\*q | \*qcpile\*q | \*qrpile\*q
+pile : \*qlpile\*q | \*qcpile\*q | \*qrpile\*q | \*qpile\*q
pos : \*qover\*q | \*qsup\*q | \*qsub\*q | \*qto\*q | \*qfrom\*q
mark : \*qdot\*q | \*qdotdot\*q | \*qhat\*q | \*qtilde\*q | \*qvec\*q
| \*qdyad\*q | \*qbar\*q | \*qunder\*q
@@ -184,6 +184,7 @@ The
and
.Ar val
are not expanded for replacements.
+This statement is a GNU extension.
.It Cm undef
Unset a previously-defined key.
Its syntax is as follows:
@@ -196,6 +197,7 @@ is discarded.
The
.Ar key
is not expanded for replacements.
+This statement is a GNU extension.
.El
.Sh COMPATIBILITY
This section documents the compatibility of mandoc
diff --git a/eqn.c b/eqn.c
index 64538498..63d53d20 100644
--- a/eqn.c
+++ b/eqn.c
@@ -205,9 +205,11 @@ static const struct eqnstr eqnposs[EQNPOS__MAX] = {
static const struct eqnstr eqnpiles[EQNPILE__MAX] = {
{ "", 0 }, /* EQNPILE_NONE */
+ { "pile", 4 }, /* EQNPILE_PILE */
{ "cpile", 5 }, /* EQNPILE_CPILE */
{ "rpile", 5 }, /* EQNPILE_RPILE */
{ "lpile", 5 }, /* EQNPILE_LPILE */
+ { "col", 3 }, /* EQNPILE_COL */
{ "ccol", 4 }, /* EQNPILE_CCOL */
{ "rcol", 4 }, /* EQNPILE_RCOL */
{ "lcol", 4 }, /* EQNPILE_LCOL */
diff --git a/mandoc.h b/mandoc.h
index f5e5ba06..1c8bc9f6 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -322,9 +322,11 @@ enum eqn_post {
enum eqn_pilet {
EQNPILE_NONE = 0,
+ EQNPILE_PILE,
EQNPILE_CPILE,
EQNPILE_RPILE,
EQNPILE_LPILE,
+ EQNPILE_COL,
EQNPILE_CCOL,
EQNPILE_RCOL,
EQNPILE_LCOL,