summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-08-13 11:45:29 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-08-13 11:45:29 +0000
commit1aa6cc37dcc72475cfe4c2a003d11b606284f790 (patch)
treee54eb36b944b08bce1d256d7c997c150ff8080b7 /tree.c
parent0e0a1095bd43dfa6ae1e90b823dac732a6ed980b (diff)
downloadmandoc-1aa6cc37dcc72475cfe4c2a003d11b606284f790.tar.gz
Significant overhaul in libman. Macros are now block- and line-scoped (with
next-line scope extensions possible). man.7 reflects block and line scoping, and also includes a REFERENCE section that will be used as a template for the big mdoc reference. Many fixes in next-line behaviour for both inline and block macros. Added some macros for compatibility (from me.7). Corrected quoted-literal handling for libman.
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tree.c b/tree.c
index 6293976b..70429548 100644
--- a/tree.c
+++ b/tree.c
@@ -163,6 +163,15 @@ print_man(const struct man_node *n, int indent)
case (MAN_TEXT):
t = "text";
break;
+ case (MAN_BLOCK):
+ t = "block";
+ break;
+ case (MAN_HEAD):
+ t = "block-head";
+ break;
+ case (MAN_BODY):
+ t = "block-body";
+ break;
default:
abort();
/* NOTREACHED */
@@ -173,6 +182,12 @@ print_man(const struct man_node *n, int indent)
p = n->string;
break;
case (MAN_ELEM):
+ /* FALLTHROUGH */
+ case (MAN_BLOCK):
+ /* FALLTHROUGH */
+ case (MAN_HEAD):
+ /* FALLTHROUGH */
+ case (MAN_BODY):
p = man_macronames[n->tok];
break;
case (MAN_ROOT):