diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-23 11:30:48 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-23 11:30:48 +0000 |
commit | 27be359286baae838840a62e6c36dac6b91cd810 (patch) | |
tree | 87f12f3a4bef976671287f4d690faf2aabd0c0eb /man_macro.c | |
parent | 32e373c8b9f15d8b28208b27247d3fd12f7235de (diff) | |
download | mandoc-27be359286baae838840a62e6c36dac6b91cd810.tar.gz mandoc-27be359286baae838840a62e6c36dac6b91cd810.tar.zst mandoc-27be359286baae838840a62e6c36dac6b91cd810.zip |
Support for pod2man standard header macros (Vb, Ve, Sp). Based largely on a set of patches by Ingo Schwarze.
Diffstat (limited to 'man_macro.c')
-rw-r--r-- | man_macro.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/man_macro.c b/man_macro.c index 0781bbda..1641d927 100644 --- a/man_macro.c +++ b/man_macro.c @@ -1,4 +1,4 @@ -/* $Id: man_macro.c,v 1.31 2010/03/22 05:59:32 kristaps Exp $ */ +/* $Id: man_macro.c,v 1.32 2010/03/23 11:30:48 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -72,6 +72,9 @@ const struct man_macro __man_macros[MAN_MAX] = { { in_line_eoln, 0 }, /* DT */ { in_line_eoln, 0 }, /* UC */ { in_line_eoln, 0 }, /* PD */ + { in_line_eoln, MAN_NSCOPED }, /* Sp */ + { in_line_eoln, 0 }, /* Vb */ + { in_line_eoln, 0 }, /* Ve */ }; const struct man_macro * const man_macros = __man_macros; @@ -316,6 +319,10 @@ in_line_eoln(MACRO_PROT_ARGS) if (0 == w) break; + /* XXX ignore Vb arguments for now */ + if (MAN_Vb == tok) + continue; + if ( ! man_word_alloc(m, line, la, p)) return(0); } |