diff options
author | 2013-10-17 20:51:28 +0000 | |
---|---|---|
committer | 2013-10-17 20:51:28 +0000 | |
commit | 3aeff92617d993171c51c2e1be911b4db5e35efb (patch) | |
tree | e34665b6d6f6f517b94f3530558434e88b49fd63 /usr.bin/mandoc/man_macro.c | |
parent | cannot have queue definitions inside anchors. (diff) | |
download | wireguard-openbsd-3aeff92617d993171c51c2e1be911b4db5e35efb.tar.xz wireguard-openbsd-3aeff92617d993171c51c2e1be911b4db5e35efb.zip |
Implement the .UR/.UE block (uniform resource identifier) introduced in the
man-ext macros by Eric S. Raymond, enabled by default in groff_man(7).
Usual disclaimer: You don't write new man(7) code, so you are not going
to use these, either.
Improves e.g. the bzr(1) and etherape(1) manuals.
Thanks to naddy@ for bringing these to my attention.
Diffstat (limited to 'usr.bin/mandoc/man_macro.c')
-rw-r--r-- | usr.bin/mandoc/man_macro.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/mandoc/man_macro.c b/usr.bin/mandoc/man_macro.c index fd6bc082996..555c14a6421 100644 --- a/usr.bin/mandoc/man_macro.c +++ b/usr.bin/mandoc/man_macro.c @@ -1,4 +1,4 @@ -/* $Id: man_macro.c,v 1.38 2012/11/17 00:25:20 schwarze Exp $ */ +/* $Id: man_macro.c,v 1.39 2013/10/17 20:51:30 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2012 Ingo Schwarze <schwarze@openbsd.org> @@ -84,6 +84,8 @@ const struct man_macro __man_macros[MAN_MAX] = { { in_line_eoln, 0 }, /* OP */ { in_line_eoln, MAN_BSCOPE }, /* EX */ { in_line_eoln, MAN_BSCOPE }, /* EE */ + { blk_exp, MAN_BSCOPE | MAN_EXPLICIT }, /* UR */ + { blk_close, 0 }, /* UE */ }; const struct man_macro * const man_macros = __man_macros; @@ -280,6 +282,9 @@ blk_close(MACRO_PROT_ARGS) case (MAN_RE): ntok = MAN_RS; break; + case (MAN_UE): + ntok = MAN_UR; + break; default: abort(); /* NOTREACHED */ |