diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-18 02:08:27 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-18 02:08:27 +0000 |
commit | 0dca371a35715658277a48885367f1eb97158c75 (patch) | |
tree | f0e4615581362ce6003973c6573dc0743f516feb /man_macro.c | |
parent | a55868d2cb7c07237689f307d3a55b33b257de09 (diff) | |
download | mandoc-0dca371a35715658277a48885367f1eb97158c75.tar.gz |
implement the GNU man-ext .SY/.YS (synopsis block) macro in man(7),
used in most manual pages of the groff package
Diffstat (limited to 'man_macro.c')
-rw-r--r-- | man_macro.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/man_macro.c b/man_macro.c index 65f1afb8..43249161 100644 --- a/man_macro.c +++ b/man_macro.c @@ -71,6 +71,8 @@ static const struct man_macro man_macros[MAN_MAX - MAN_TH] = { { in_line_eoln, MAN_NSCOPED }, /* PD */ { in_line_eoln, 0 }, /* AT */ { in_line_eoln, MAN_NSCOPED }, /* in */ + { blk_exp, MAN_BSCOPE }, /* SY */ + { blk_close, MAN_BSCOPE }, /* YS */ { in_line_eoln, 0 }, /* OP */ { in_line_eoln, MAN_BSCOPE }, /* EX */ { in_line_eoln, MAN_BSCOPE }, /* EE */ @@ -223,6 +225,9 @@ blk_close(MACRO_PROT_ARGS) return; } break; + case MAN_YS: + ntok = MAN_SY; + break; case MAN_UE: ntok = MAN_UR; break; |