From 80da5c33753e6423f0c705cd021a073af20577a9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 17 Oct 2013 20:54:58 +0000 Subject: 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. --- man_macro.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'man_macro.c') 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 * Copyright (c) 2012 Ingo Schwarze @@ -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 */ -- cgit v1.2.3-56-ge451