aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2010-07-01 22:35:54 +0000
committerIngo Schwarze <schwarze@openbsd.org>2010-07-01 22:35:54 +0000
commite552a5cef0219ea63fb9521677e1a8a05ad35727 (patch)
tree4a4e069b6b57e03c5805f88f307dae15e95a65ad /libmdoc.h
parent9c216164abd606b0097a7d91e8e0026c721fa54d (diff)
downloadmandoc-e552a5cef0219ea63fb9521677e1a8a05ad35727.tar.gz
mandoc-e552a5cef0219ea63fb9521677e1a8a05ad35727.tar.zst
mandoc-e552a5cef0219ea63fb9521677e1a8a05ad35727.zip
In the mdoc(7) parser, inspect roff registers early such that all parts
of the parser can use the resulting cues. In particular, this allows to use .nr nS to force SYNOPSIS-style .Nm indentation outside the SYNOPSIS as needed by ifconfig(8). To actually make this useable, .Pp must rewind .Nm, or the rest of the section would end up indented. Implement a quick hack for now, a generic solution can be designed later. ok kristaps@ and tested by sobrado@
Diffstat (limited to 'libmdoc.h')
-rw-r--r--libmdoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmdoc.h b/libmdoc.h
index f4aba6a5..32328ff9 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmdoc.h,v 1.58 2010/06/29 19:20:38 schwarze Exp $ */
+/* $Id: libmdoc.h,v 1.59 2010/07/01 22:35:54 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -36,6 +36,7 @@ struct mdoc {
#define MDOC_PHRASELIT (1 << 4) /* literal within a partila phrase */
#define MDOC_PPHRASE (1 << 5) /* within a partial phrase */
#define MDOC_FREECOL (1 << 6) /* `It' invocation should close */
+#define MDOC_SYNOPSIS (1 << 7) /* SYNOPSIS-style formatting */
int pflags;
enum mdoc_next next; /* where to put the next node */
struct mdoc_node *last; /* the last node parsed */