diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-08-26 16:18:39 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-08-26 16:18:39 +0000 |
commit | b3cadfc0f138a80af5172982c9ebd37c84bbe83c (patch) | |
tree | da7907ea05ca8e88cfec4ecd98244eb6f434400b /usr.bin/mandoc/libman.h | |
parent | 229ed056ebde6f0a5ef309b5b70febe11e1adda2 (diff) |
Support nesting of elements with next-line scope.
For example, ksh93(1) needs this for .B\n.SM.
Diffstat (limited to 'usr.bin/mandoc/libman.h')
-rw-r--r-- | usr.bin/mandoc/libman.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/mandoc/libman.h b/usr.bin/mandoc/libman.h index 4ab0e6defd1..b62950fe3e8 100644 --- a/usr.bin/mandoc/libman.h +++ b/usr.bin/mandoc/libman.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libman.h,v 1.57 2018/08/17 20:31:52 schwarze Exp $ */ +/* $OpenBSD: libman.h,v 1.58 2018/08/26 16:18:38 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -26,14 +26,16 @@ struct man_macro { void (*fp)(MACRO_PROT_ARGS); int flags; -#define MAN_SCOPED (1 << 0) /* Optional next-line scope. */ -#define MAN_NSCOPED (1 << 1) /* Allowed in next-line element scope. */ -#define MAN_BSCOPE (1 << 2) /* Break next-line block scope. */ -#define MAN_JOIN (1 << 3) /* Join arguments together. */ +#define MAN_BSCOPED (1 << 0) /* Optional next-line block scope. */ +#define MAN_ESCOPED (1 << 1) /* Optional next-line element scope. */ +#define MAN_NSCOPED (1 << 2) /* Allowed in next-line element scope. */ +#define MAN_XSCOPE (1 << 3) /* Exit next-line block scope. */ +#define MAN_JOIN (1 << 4) /* Join arguments together. */ }; const struct man_macro *man_macro(enum roff_tok); +void man_descope(struct roff_man *, int, int, char *); void man_node_validate(struct roff_man *); void man_state(struct roff_man *, struct roff_node *); void man_unscope(struct roff_man *, const struct roff_node *); |