diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-17 20:54:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-17 20:54:58 +0000 |
commit | 80da5c33753e6423f0c705cd021a073af20577a9 (patch) | |
tree | 86853f332a4ac8f07b3d088aeccb48fc5611ebc6 /man_macro.c | |
parent | de451aaf7a927d2994d3e526df07235dee8005af (diff) | |
download | mandoc-80da5c33753e6423f0c705cd021a073af20577a9.tar.gz mandoc-80da5c33753e6423f0c705cd021a073af20577a9.tar.zst mandoc-80da5c33753e6423f0c705cd021a073af20577a9.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 'man_macro.c')
-rw-r--r-- | man_macro.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/man_macro.c b/man_macro.c index 6631f14d..eaa8fba0 100644 --- a/man_macro.c +++ b/man_macro.c @@ -1,4 +1,4 @@ -/* $Id: man_macro.c,v 1.75 2012/11/17 00:26:33 schwarze Exp $ */ +/* $Id: man_macro.c,v 1.76 2013/10/17 20:54:58 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2012 Ingo Schwarze <schwarze@openbsd.org> @@ -88,6 +88,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; @@ -284,6 +286,9 @@ blk_close(MACRO_PROT_ARGS) case (MAN_RE): ntok = MAN_RS; break; + case (MAN_UE): + ntok = MAN_UR; + break; default: abort(); /* NOTREACHED */ |