summaryrefslogtreecommitdiffstats
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
commit0bae01a379ba9702c03dfcf16874c3ec9beaa711 (patch)
tree591d704bdb2bcdf1b1f8850888e883c4a8387358 /libmdoc.h
parent9aa51d8254f41d6b1f1ef2382a74288fb913f815 (diff)
downloadmandoc-0bae01a379ba9702c03dfcf16874c3ec9beaa711.tar.gz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmdoc.h b/libmdoc.h
index 579809cd..5cf1f647 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -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 */