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 | 664c21875228ae7f241f792abcc521bc64e42067 (patch) | |
tree | 074094c1be5f19d158836e09aeed7fabc1aca3ce /man_macro.c | |
parent | 1850b321257c0b341f90c8d3c259ac54899376e6 (diff) | |
download | mandoc-664c21875228ae7f241f792abcc521bc64e42067.tar.gz |
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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/man_macro.c b/man_macro.c index dfd521e3..1a7ed50c 100644 --- a/man_macro.c +++ b/man_macro.c @@ -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); } |